Re: Unnecessary Boolean Warning
Re: Unnecessary Boolean Warning
- Subject: Re: Unnecessary Boolean Warning
- From: Gordon Apple <email@hidden>
- Date: Sun, 31 Jul 2011 15:36:15 -0500
- Thread-topic: Unnecessary Boolean Warning
Sorry, that should have been posted to Xcode.
On 7/31/11 3:13 PM, "Gordon Apple" <email@hidden> wrote:
> The following expression generates a warning message (³&&² within ³||²) and
> says to include the ³anded² expression in parens. Anybody who understands
> basic boolean operator precedence knows this is unnecessary. Bug report?
>
> BOOL isInUse = [super mediaIsInUse];
> isInUse = isInUse || [self videoIsOn] && ([[self capMgr] isRecording]
> || [[self camVC] movieIsPlaying]
> || [[self camVC]
> movieIsPaused]);
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden