• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Comparison of promoted ~unsigned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Comparison of promoted ~unsigned
      • From: Chris Suter <email@hidden>
References: 
 >Comparison of promoted ~unsigned (From: Jonny Taylor <email@hidden>)
 >Re: Comparison of promoted ~unsigned (From: Chris Suter <email@hidden>)
 >Re: Comparison of promoted ~unsigned (From: Jonny Taylor <email@hidden>)
 >Re: Comparison of promoted ~unsigned (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Comparison of promoted ~unsigned
  • Next by Date: Re: Comparison of promoted ~unsigned
  • Previous by thread: Re: Comparison of promoted ~unsigned
  • Next by thread: Re: Comparison of promoted ~unsigned
  • Index(es):
    • Date
    • Thread