Re: pragma nowarn
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