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

Reply via email to