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

Re: RFC: Named warnings


> If a -Wxxx causes a warning to be issued in a particular file, then
> it is far easier and less contrived to edit that file and adds
> 
>    #pragma warning xxx [on|off]
> 
> around the offending code than find out the handbook and lookup the
> corresponding number.  We have to take ease of use into account.

That's exactly the gnat approach, except that the pragma is spelled

      pragma Warnings (On | Off);


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