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
2010-07-26 23:43:11
What about if they are header only files :-/
JH
2010-07-27 00:14:01
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
2010-07-27 01:31:30