- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How i can use this -W with icc ?
Am i right that gcc have analog for icc's -W ?
configure:5560: checking whether icpc supports -Wmissing-format-attribute
configure:5600: rm -rf SunWS_cache; icpc -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wmissing-format-attribute conftest.cpp 1>&5
icpc: command line warning #10156: ignoring option '-W'; no argument required
icpc: command line warning #10156: ignoring option '-W'; no argument required
icpc: command line remark #10148: option '-W' not supported
icpc: command line warning #10156: ignoring option '-W'; no argument required
conftest.cpp(16): remark #111: statement is unreachable
return 0;
^
configure:5607: $? = 0
configure:5637: result: yes
Am i right that gcc have analog for icc's -W
configure:5560: checking whether icpc supports -Wmissing-format-attribute
configure:5600: rm -rf SunWS_cache; icpc -o conftest -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wmissing-format-attribute conftest.cpp 1>&5
icpc: command line warning #10156: ignoring option '-W'; no argument required
icpc: command line warning #10156: ignoring option '-W'; no argument required
icpc: command line remark #10148: option '-W' not supported
icpc: command line warning #10156: ignoring option '-W'; no argument required
conftest.cpp(16): remark #111: statement is unreachable
return 0;
^
configure:5607: $? = 0
configure:5637: result: yes
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
icc supports only the most common gcc -W options, such as -Wall. If you don't want to tinker with this configury, I guess you'll have to resign yourself to seeing lots of warnings.

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