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

How to suppress a particular warning message?

ferrad
新的用户
582 次查看
Is it possible to suppress a particular warning message (eg. #110) during the compilation process? The documentation only specifies how to suppress broad categories of warnings.
0 项奖励
4 回复数
ferrad
新的用户
582 次查看
I've just seen that I don't actually know the warning message number. I'm trying to suppress the following warning message:
Warning: A jump into a block from outside the block may have occurred.
What's the trick?
0 项奖励
Steven_L_Intel1
582 次查看
The compiler does not offer the feature of disabling individual warnings. I would recommend fixing your code rather than disabling the warning. A branch into a block is illegal and can cause unpredictable behavior at run-time.
0 项奖励
ferrad
新的用户
582 次查看

Yes that would have been my first choice, but it's not our code - in fact it's Netlib code (http://www.netlib.org/blas/blas2test.f), which is standard off-the-shelf code and I'm loathed to modify it. CVF did not complain.

Adrian

0 项奖励
Steven_L_Intel1
582 次查看
AUGH! Assigned GOTOs! This code should be taken out and shot...

I know that the Intel compiler does more analysis of assigned GOTOs than CVF did. I haven't yet spotted if the warning is reasonable - I'll have to play with it some more. You can suppress all warnings if you want, but that's all I can suggest for now.
0 项奖励
回复