This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Named warnings
- From: dewar at gnat dot com (Robert Dewar)
- To: gdr at integrable-solutions dot net, jbuck at synopsys dot com
- Cc: gcc at gcc dot gnu dot org, mark at codesourcery dot com, shebs at apple dot com
- Date: Fri, 24 Jan 2003 13:11:42 -0500 (EST)
- Subject: 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);