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

how to switch off warning clutter from conditional compilation when checking standard

may_ka
Beginner
663 Views

Hi

This program:

program test
  !DIR$ if Defined (bla)
  !DIR$ end if
end program test

when compiled with ifort 17.07:

ifort -stand f08 tmp1.f90

yields:

tmp1.f90(2): warning #7025: This directive is not standard F2008.
  !DIR$ if Defined (bla)
--------^
tmp1.f90(3): warning #7025: This directive is not standard F2008.
  !DIR$ end if
--------^

For the example this is a minor problem, but when compiling +100,000 lines of code it can be become very anying when trying to find dangerous standard violations.

Is there any way to switch that off and still check the code for following the standard??

Thanks

Karl

0 Kudos
2 Replies
Lorri_M_Intel
Employee
663 Views

You can add "-diag-disable 7025" which will turn off ONLY the messages about non-standard directives.

                --Lorri

0 Kudos
may_ka
Beginner
663 Views

Thanks.

Karl

0 Kudos
Reply