- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When can I find the list of all warnings I can turn on for Intel C++ compilers?
Thanks.
Thanks.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Zhu Wang (Intel)
When I tried this:
icc -diag-enable:warn -diag-dump -c arraySize.cpp >& diag_warn_icc.txt
more diag_warn_icc.txt
icc: command line warning #10158: ignoring option '-diag-enable'; argument must be separate
It seems the -diag-enable is ignored.
Please help.
I am on a linux system.
The syntax is slightly different on Linux (and Mac) than it is on Windows. Try this:
icc -diag-enable warn -diag-dump -c hello.c >& diag_warn_icc.txt
That seems to work for me. Does that do what you want?
Dale
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use this option to get all the diagnostics:
icc /diag-enable:warn /diag-dump /c t.c > diag_warn.txt
icc /diag-dump /c t.c > diag_all.txt
Each version, some diagnostics are added or updated.
Jennifer
icc /diag-enable:warn /diag-dump /c t.c > diag_warn.txt
icc /diag-dump /c t.c > diag_all.txt
Each version, some diagnostics are added or updated.
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I tried this:
icc -diag-enable:warn -diag-dump -c arraySize.cpp >& diag_warn_icc.txt
more diag_warn_icc.txt
icc: command line warning #10158: ignoring option '-diag-enable'; argument must be separate
It seems the -diag-enable is ignored.
Please help.
I am on a linux system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Zhu Wang (Intel)
When I tried this:
icc -diag-enable:warn -diag-dump -c arraySize.cpp >& diag_warn_icc.txt
more diag_warn_icc.txt
icc: command line warning #10158: ignoring option '-diag-enable'; argument must be separate
It seems the -diag-enable is ignored.
Please help.
I am on a linux system.
The syntax is slightly different on Linux (and Mac) than it is on Windows. Try this:
icc -diag-enable warn -diag-dump -c hello.c >& diag_warn_icc.txt
That seems to work for me. Does that do what you want?
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great. It works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Zhu Wang (Intel)
When can I find the list of all warnings I can turn on for Intel C++ compilers?
Thanks.
Thanks.
Why not think and try using -
"-Weffc++" (enables warnings based on C++ guidelines)
"-Werror" (forces warnings to be reported as errors)
"-Werror-all" (change all warnings & remarks to errors)
"-diag-enable sv
"-w2" (display errors, warning & remarks)
~BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, but sorry, this is not what I want. The previous post already answered my question.
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