This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Command line options and pragmas
- From: DJ Delorie <dj at redhat dot com>
- To: dtaylor at emc dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 9 Jan 2006 14:30:03 -0500
- Subject: Re: Command line options and pragmas
- References: <200601091846.k09IkLhk001021@mailhub.lss.emc.com>
> . Next, if it would not be rejected on the "we don't want to have such
> functionality" basis, then the question becomes one of what should the
> interface look like? Some possibilities include:
>
> #pragma GCC command-line -Wprecision-mismatch
>
> unilaterally set -Wprecision-mismatch
I was planning on proposing something like:
#pragma GCC diagnostic [warning|error|ignore] -Wprecision-mismatch
The diagnostic machinery already has support for some of this, I had
hoped to find time to make it fine-grained, allowing you to override
the KIND of each warning, and thus override -Werror on a
per-warning-type basis.
I had planned on forcing the user to place these pragmas before the
first function definition, otherwise it becomes difficult to track
when various warnings are in force.