On Tue, Feb 10, 2009 at 7:29 AM, Sean McBride <[email protected]> wrote: > On 2/9/09 6:48 PM, Clark Cox said: > >>> So, I belive #if defined(x) && (x) is good defensive programming. >> >>Nope, it's still redundant. And I am 100% sure of that. > > So is gcc's -Wundef a leftover from a pre-C89 era? Or is it to help > keep your code compatible with non-compliant compilers? Or is it just > useless? :)
IMHO, it's useless :) That said, there are many warnings that warn you about perfectly valid C constructs that some people nevertheless find useful. -Wparentheses for instance. -- Clark S. Cox III [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
