- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page