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



Yes, the missing "pop" is a bug. There should be one in the machinery.

I can see how it is by design that the flags don't reset at the end of the function. But there should be support for one of


#pragma GCC diagnostic restore "-Wcast-qual"

(to restore to the cmd-line setting) or

#pragma GCC diagnostic pop "-Wcast-qual"

Paolo


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