链接已复制
4 回复数
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?
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.
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
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.
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.
