Re: Comparison of promoted ~unsigned
Re: Comparison of promoted ~unsigned
- Subject: Re: Comparison of promoted ~unsigned
- From: Jonny Taylor <email@hidden>
- Date: Wed, 7 Oct 2009 09:33:58 +0100
What compiler and version are you using? I don't see this extra
warning on any of the compilers available to me.
I see this with gcc 4.0 and 4.2, both tiger and snow leopard standard
installs, when I enable -Wall (or -Wsign-compare). Are you saying
you see
neither error, or just the first (probably correct) one?
Just the first.
On SL:
# cat | gcc -c -W -Wall -x c -O3 -arch i386 -o /dev/null -
Hi Chris,
Interesting. I don't know why, but the erroneous warning only appears
when compiling c++ code. You have explicitly specified the "-x c"
option in your example; if you change this to "-x c++" I think you
should see the warning I am talking about.
Jonny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden