I\'m using g++ version 4.2.1 with -Wextra enabled. I\'m including a header from a library, and I keep getting the following warning about a class in the library, which is enable
According to http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html (search for Wextra
) that is an inherent part of -Wextra
and can't be disabled separately (e.g. it isn't listed separately by its own -W
option).
It looks like the best you can do is either isolate the use of the library to one file on which you disable -Wextra
or don't use -Wextra
at all and individually enable all its components (from that link).