tags:

views:

48

answers:

2

I am wondering if it is possible to have werror in gcc/g++ exclude certain files (ones that I do not have source code to modify) so that I can continue using werror in a uninhibited state.

A: 

My only thought is to compile the files you can modify separately with -Werror and then link them with the other object/library files without -Werror.

Duracell
What about if they are header only files :-/
JH
A: 

Use pragma directives with a newer (4.2 I think) version of gcc to turn off -Werror for certain headers prior to including them.

You might want to accept answers for your previous questions.

Sam Miller