• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Warning flag for 'if (x = y)'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning flag for 'if (x = y)'


  • Subject: Warning flag for 'if (x = y)'
  • From: Matt Gough <email@hidden>
  • Date: Fri, 16 Jan 2004 18:00:31 +0000

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.

  • Follow-Ups:
    • Re: Warning flag for 'if (x = y)'
      • From: Kaelin Colclasure <email@hidden>
    • Re: Warning flag for 'if (x = y)'
      • From: Alastair Houghton <email@hidden>
    • Re: Warning flag for 'if (x = y)'
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Looking for a Workaround for GCC Bug
  • Next by Date: Re: Warning flag for 'if (x = y)'
  • Previous by thread: Re: How to link to a carbon shlb?
  • Next by thread: Re: Warning flag for 'if (x = y)'
  • Index(es):
    • Date
    • Thread