Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29429 Discussions

Increasing the compiler's level of verbosity

Gustavo_C_1
Beginner
964 Views

Hi there.

Is there a practical way to attain the highest possible number of warnings, to ensure strict standard compliance and to make it stop at the first encountered error (or to define the number of errors after which the compilation will stop).

I want it nasty, really really verbose and annoying.

I think there used to exist a pdf with all these things but I can't find it.

Thanks!

0 Kudos
2 Replies
Steven_L_Intel1
Employee
964 Views

/stand to enable standards warnings
/warn:errors turns warnings into errors (or use /warn:stderror to do that only for standards warnings)
/warn:interface (on by default in a new VS project)
/Qdiag-error-limit:n to set an error limit

0 Kudos
Gustavo_C_1
Beginner
964 Views

Thank you very much, Steve.

At first, I didn't find it by searching the documentation but eventually I found it under Compiler Reference > Compiler Options > Compiler Option Categories and Descriptions > Compiler Diagnostic Options.

The entries are fairly intuitive and I found browsing the documentation is better than using the search tool.

Thank you again,

Gustavo

0 Kudos
Reply