This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Fix problematic -Wcast-qual cases using new CONST_CAST macro
On Mon, 6 Aug 2007, Kaveh R. GHAZI wrote:
| On Mon, 6 Aug 2007, Gabriel Dos Reis wrote:
|
| > On Mon, 6 Aug 2007, Kaveh R. GHAZI wrote:
| >
| > | How about a __nowarn__ keyword that works similar to __extension__?
| > | Instead of twiddling the pedantic flag, it would push/pop the
| > | inhibit_warnings variable inside gcc to silence warnings at the statement
| > | level.
| > |
| > | I'm about halfway through a patch. If you're amenable to the idea I'll
| > | finish it up and post it.
| >
| > I would have thought that DJ's idea of using #pragma in code text
| > to turn on/off warning coupled with an inline function would do.
| > -- Gaby
|
| It would do, if it was finished. I don't know where that stands.
| Perhaps DJ could give us an update.
|
| BTW, I'm not sure I ever saw a specific description of how the #pragma
| syntax would look like. IMHO, I wouldn't do an on/off interface.
| Instead I think push/pop makes more sense.
Yes, you're right. In fact, I believe push/pop was the model that DJ
advocated. DJ?
-- Gaby