• 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: Don't understand this compiler warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't understand this compiler warning


  • Subject: Re: Don't understand this compiler warning
  • From: Lawrence Gold <email@hidden>
  • Date: Fri, 1 Jul 2005 09:14:18 -0600

On Jun 30, 2005, at 11:14 AM, Chris Ridd wrote:

The problem is in the use of "lcl_l_flags |= 1". If you change the macro to
just use plain |s instead of |=s, the warning goes away. You can reduce the
problem down to:


  lcl_l_flags = lcl_l_flags |= 1;

I don't think changing the |= to | alters the logic of the code at all...

This looks like the kind of construct for which the OpenVMS compiler reports a warning. For example, for


    addr = ++addr & mask;

it reports

Ì-W-UNDEFVARMOD, In this statement, the expression "addr=+ +addr&mask" modifies the variable "addr" more than once without an intervening sequence point. This behavior is undefined.

There's more information about this at

http://www.embedded.com/shared/printableArticle.jhtml? articleID=9900661

_______________________________________________
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


  • Prev by Date: Re: problems linking with dylib
  • Next by Date: Xcode 2.1 debugger hanging at breakpoint
  • Previous by thread: re: large memory malloc
  • Next by thread: Xcode 2.1 debugger hanging at breakpoint
  • Index(es):
    • Date
    • Thread