This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Werror for certain warnings?


Hi Erik,

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

HTH,
--Eljay

* Always the possibility that I may be mistaken.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]