Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning flag for 'if (x = y)'



-Wall is your friend... :-)

-- Kaelin

On Jan 16, 2004, at 10:00 AM, Matt Gough wrote:

I just spent half an hour tracking down a bug caused by doing:

if (x = y)

when I meant:

if (x == y)

I then spent another ten minutes looking through the gcc warning options and couldn't find anything that would spot this. I am sure such a warning exists, but where?


Matt Gough
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Warning flag for 'if (x = y)' (From: Matt Gough <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.