Re: Don't understand this compiler warning
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