> > How is [treating specific warnings as errors] supposed to be done? > > Enable just the warnings you want to be treated as errors and use the > -Werror switch. > > I do not believe* there is the ability to promote specific warnings (other > than -Werror-implicit-function-declaration) to be treated as errors. > > That would be a nice enhancement to GCC. Hi, It looks like it's implemented in 4.2. [1] -Werror=blah (implies -Wblah) -Wno-error=blah (only guarantees not promoted to error) [1] http://gcc.gnu.org/bugzilla//show_bug.cgi?id=29768 I know Erik is already CC'd on that PR, but for the benefit for anyone who wanders across this thread... > HTH, > --Eljay > > * Always the possibility that I may be mistaken. Fang