Re: MoreCRC - target of assignment not really an lvalue; this will be a hard error in the future
Re: MoreCRC - target of assignment not really an lvalue; this will be a hard error in the future
- Subject: Re: MoreCRC - target of assignment not really an lvalue; this will be a hard error in the future
- From: Wade Tregaskis <email@hidden>
- Date: Mon, 14 Jul 2008 20:23:07 -0700
Does anyone know how to turn off this error in XCode 2.5 or fix the
code so that it doesn't occur?
It typically occurs when you have something like a conditional on the
left side of your statement, e.g.:
(someBoolean ? thisPtr : thatPtr) = NULL;
The warning is trying to say that some time in the future the gcc guys
would like to make the result of conditionals constant, effectively,
so the above won't be valid. The solution is to rewrite your code to
not have this pattern, so something like:
if (someBoolean) {
thisPtr = NULL;
} else {
thatPtr = NULL;
}
Wade
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden