This is the mail archive of the gcc-patches@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]

Re: Warnings in the C++ Front-End and GCC in General


> > First  of all, thank  you very much, Mark! I  really  like the idea of
> > turning warnings on and off from inside the source files; and I agree,
> > using #pragma is the way to go!
> 
> When this principle is applied to system include files, this could well
> lead to a fixunclude orgy.  We should keep in mind that there is a point
> where it is better to simply supress some warnings in system header files,
> rather than trying to add gcc-specific #pragmas to every header file.

My concern is that once we have a mechanism to suppress warnings in system
header files, the quality of glibc and libstdc++ will start to degrade ...
it will be too easy to just turn off warnings rather than to code things
correctly (and if avoiding a warning makes your code worse, the warning
is poorly designed or implemented).






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