• 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
GCC Warning Options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC Warning Options


  • Subject: GCC Warning Options
  • From: Nick Nallick <email@hidden>
  • Date: Fri, 17 Jun 2005 11:57:06 -0600

In my CodeWarrior port I'm getting a lot of warnings "missing braces around initializer" for lines like CGRect r = {0,0,0,0} (instead of {{0,0},{0,0}}). Apparently GCC-4 is more strict about this than CW. My inclination is to turn this off to cut down the noise so I can concentrate on more significant warnings.

The odd thing is in both the project and target settings the "Initializer Not Fully Bracketed" warning is turned off (by default apparently). The target's "Other Warning Flags" field does contain the string "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -Wl,- w", but I have no idea what these mean and I can't find any documentation on them.

Can anybody tell me how to turn off this particular warning, or at least point me to the GCC-4 documentation?

FWIW, I find it disturbing that a Macintosh IDE would expose this type of command line UI by default. It's probably okay for obscure cases but since these are default values there should be a better UI for them. For example, the checkbox for "Four Character Literals" is checked, but I also have a command line option "-Wno-four-char- constants". Perhaps these reinforce each other or cancel each other out, I have no idea. The same is true of the unknown pragma case.

Thanks,
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GCC Warning Options
      • From: Markus Hitter <email@hidden>
    • Re: GCC Warning Options
      • From: Lawrence Gold <email@hidden>
  • Prev by Date: Re: GCC-XML for XCode? (was: RE: is there an automated way to beautify code in xcode?)
  • Next by Date: multiple executables, one application
  • Previous by thread: cstdlib include compile errors GCC 4.0
  • Next by thread: Re: GCC Warning Options
  • Index(es):
    • Date
    • Thread