This is the mail archive of the gcc-patches@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: Add a __nowarn__ keyword


Paolo Bonzini <bonzini@gnu.org> writes:

| > Perhaps.  The documentation says not all warnings are modifiable.  I
| > didn't check whether -Wcast-qual is one of them or if this is in fact a
| > bug.  IMHO because of the problems DJ noted in his summary, I believe
| > using a #pragma interface is fatally flawed.  In addition to what he said,
| > you also can't use #pragma in a macro definition.
| 
| 
| Would it make sense to have some pragmas stop their effect at the end
| of the statement if they are written (as _Pragma) in the middle of the
| code?

That is far more than what we need now.  And doing what you suggest
would get again, I suspect, in the same discussion as DJ had.

-- Gaby


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