Community
cancel
Showing results for 
Search instead for 
Did you mean: 
IBerm
Beginner
81 Views

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

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
Black Belt Retired Employee
66 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

 
 
IBerm
Beginner
50 Views

Thank you for the details provided.