Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
36 Views

icpc: command line warning #10156: ignoring option '-W'; no argument required

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
0 Kudos
1 Reply
Highlighted
Black Belt
36 Views

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.
0 Kudos