This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for different pointer signedness
On Mon, 20 Dec 2004, Mike Stump wrote:
> Since the impact of the recent change to always warn for this invalid code
> seems larger than what people were expecting, do we want to consider adding a
> flag to add the extension or to otherwise inhibit the warning? If yes, what
> should it be called -fsigned-conversions or -Wsigned-conversions?
I'd suggest -Wno-pointer-sign-conversions to disable the warning (i.e. the
warning defaults to on as now but can be disabled with that option).
Given there seems no likelihood of having an agreed design for general
warning control soon, adding specific options for any warning people want
to control separately seems reasonable to me.
In any case, the warning - plus the new option if added - should evidently
be mentioned in the release notes.
> I'm thinking of something like:
(The code has changed substantially since the version this diff is
against.)
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)