modification to allow -Wcast-qual to find potential warnings without unicode.h causing them

2007-03-08 Thread Andrew Talbot
Assuming it is valid and does what is required, maybe the following pragma
would be more precise.

#pragma GCC diagnostic warning -Wwrite-strings

-- Andy.






Re: modification to allow -Wcast-qual to find potential warnings without unicode.h causing them

2007-03-08 Thread Andrew Talbot
Of course, what I should have written was:

Assuming it is valid and does what is required, maybe the following pragma
would be more precise.

#pragma GCC diagnostic ignored -Wcast-qual
 
Sorry. I did too much cutting and pasting, and not enough thinking.

-- Andy.






Re: modification to allow -Wcast-qual to find potential warnings without unicode.h causing them

2007-03-08 Thread Andrew Talbot
Mike Schaadt wrote:

 I attempted using the suggested '#pragma GCC diagnostic ignored
 -Wcast-qual' in replace of what I submited, however I received the
 warning 'ignoring #pragma GCC diagnostic' message, plus the normal
 warnings from unicode.h
 
 My guess is that I might be using an older version of gcc that doesn't
 support that feature.  My version of gcc is 4.1.2, the version that comes
 with ubuntu.  Should I upgrade my version of gcc, or should I leave the
 pragma instruction as it was?  What is the wine standard version of gcc?

Hi Mike,

Yes, you are right: I tried it, too, and got the same result. GCC 4.1.2. is
the latest version, so I'm not sure why this pragma is being ignored. I was
hoping it might be a way of supressing the cast-qual warnings for this
file, without suppressing other warnings, too.

-- Andy.