On Sun, 31 Jul 2011 15:13:45 -0500, Gordon Apple said: >The following expression generates a warning message (3&&2 within 3||2) and >says to include the 3anded2 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]);
This warning has found several bugs (ie incorrect programmer recollection of precedence rules) in at least 2 open source projects I use. I'm glad we have it. Turn it off it offends you so. -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com