I would like to disable special warnings for all files that are included, directly or indirectly, using separate files. For example, I want to disable the warning "you assign a string literal to char *" for all files or files included in the files included in #include <bar/*> (the star in my case means "something may be here" " )
The reason is that some of the people I have to program with just can't use "const", so in the end I get a lot of warnings about this particular abuse of string literals. I would like to ignore these thousands of warnings coming from their code, so I can focus on the errors in my own code and fix them.
I am using Intel C ++ and GCC. Some of my buddies use clang, so I would be glad to hear solutions for this.
c ++ suppress-warnings
Johannes Schaub - litb Jun 12. '11 at 12:07 on 2011-06-12 12:07
source share