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

Hardcoded compiler options in a .f file

aurora
Beginner
518 Views
Hi,
Im trying to specify in one subroutine that I don't want to see a remark -thats its, for example: using/Qdiag-disable:7712-
The thing is I want to do this (if possible) inside the code. Is there a manner of achieve this with a !DEC$ directive or something?
Thanks in advance!
0 Kudos
3 Replies
Steven_L_Intel1
Employee
518 Views
Generally, no. The only diagnostic I know you could disable in this way is a warning about unaligned derived type/structure components. What specifically did you want to disable?
0 Kudos
aurora
Beginner
518 Views
I want to disable for exampleremark #7712 in several subroutines of my project
Thanks
0 Kudos
Steven_L_Intel1
Employee
518 Views
Ah, that one is "variable has not been used". A traditional way of "disabling that diagnostic is to add a dummy assignment, such as:

unused = unused

at the start of the procedure. I will note that this warning is not enabled by default.
0 Kudos
Reply