• 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
Why doesn't gcc 4 like this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why doesn't gcc 4 like this?


  • Subject: Why doesn't gcc 4 like this?
  • From: Tim Conkling <email@hidden>
  • Date: Sat, 4 Jun 2005 16:38:53 -0400

For the following bit of code, gcc reports the following warning: "/ Users/tconklin/Everything Else/Programming/My Projects/Gnomez/ GnomeSpritez/source/Sprite/MySprite.cpp:298: warning: target of assignment not really an lvalue; this will be a hard error in the future":

short*            srcRowStart;
...
((char*) srcRowStart) += framePort->getRowBytes(); <-- error here

(getRowBytes() returns a UInt32)

What does this warning mean?

Tim
_______________________________________________
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: Why doesn't gcc 4 like this?
      • From: Andrew Pinski <email@hidden>
  • Prev by Date: Re: Const qualifier conversion warnings
  • Next by Date: Re: Why doesn't gcc 4 like this?
  • Previous by thread: Re: Using an Applescript xcode plugin to access data from the folders under Groups&Files
  • Next by thread: Re: Why doesn't gcc 4 like this?
  • Index(es):
    • Date
    • Thread