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

Intel Fortran compiler options with a functionality similar to the GNU compiler

IBerm
Beginner
453 Views

I am interested on whether options similar to the GNU-specific compile-time options with the following functionality

-Werror=conversion: Error when implicit conversions are likely to change the value of the expression after conversion
-Werror=unused-variable: Error when a local variable is declared but not used
-Werror=character-truncation: Error when a character assignment will truncate the assigned string
-Werror=unused-value: Error when a private module variable is declared but not used

are available with the Intel Fortran compiler and what their equivalents are?

Thank you.

Regards,

Ilia

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
438 Views

-Werror=conversion - no
-Werror=unused-variable - /warn:unused
-Werror=character-truncation - no
-Werror=unused-value - I am not sure what this is, possibly covered by /warn:unused

 
 
0 Kudos
IBerm
Beginner
422 Views

Thank you for the details provided.

0 Kudos
Reply