• 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
Re: pragma nowarn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pragma nowarn


  • Subject: Re: pragma nowarn
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 11 Dec 2007 11:05:05 +0000

On 10 Dec 2007, at 22:25, William Bates wrote:

I take it Xcode has no functional equivalent of this handy old Code Warrior pragma, which
allowed suppression of warning messages from individual lines/blocks of code....Xcode warning settings are global in scope, right?

Personally, I view the lack of

  #pragma nowarn

as a good thing. Like a lot of things in CodeWarrior, it's a Microsoft-ism, and I've seen a *lot* of Windows code misusing this pragma to disable a warning that should actually have been fixed by changing the code.

Put another way, it's a good way to hide bugs in your code. The apps I work on build with *no warnings* and I didn't need #pragma nowarn to do it in spite of increasing the warning level relative to the default.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ 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: pragma nowarn
      • From: William Bates <email@hidden>
    • Re: pragma nowarn
      • From: Alexander von Below <email@hidden>
References: 
 >pragma nowarn (From: William Bates <email@hidden>)

  • Prev by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by Date: Re: pragma nowarn
  • Previous by thread: Re: pragma nowarn
  • Next by thread: Re: pragma nowarn
  • Index(es):
    • Date
    • Thread