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: Command line options and pragmas


> . 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.


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