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] |
Am Freitag 20 Februar 2009 schrieb Yang Zhang:Can gcc restrict certain warnings to exclude certain files or to apply only to certain files? E.g., I'd like to have -Wold-style-cast, -Wconversion, and some others to apply only to my own code, and not (say) boost headers. (I do use -Werror.) Thanks in advance.
You can ignore warnings from headers that are not your own by using -isystem instead of -I.
Christoph
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |