I use -Wall and updating to new gcc I have got a lot of warning: narrowing conversion. I want to disable them, but leave all other warnings untouched (ideally).
-Wall
warning: narrowing conversion
I can find nothing about narrowing in http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
narrowing
How to disable narrowing conversion warnings? Is it possible at all?
P.S.
I need to Disable warnings, not fix them in the source code.
Blind -Wno-conversion doesn't help.
-Wno-conversion
As gx_ said, adding -Wno-narrowing to your command line should ignore those errors. Encountered this myself when upgrading to C++0x.
-Wno-narrowing
1.4m articles
1.4m replys
5 comments
57.0k users