Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling language-specific warnings in multi-language projects



On 2006-07-24 11:06, Greg Guerin said:

>>There's no "Other Objective-C Flags" is there?  How about -Wprotocol and
>>-Wundeclared-selector?  Putting them in WARNING_CFLAGS or OTHER_CFLAGS
>>gives me: "-Wprotocol is valid for ObjC/ObjC++ but not for C", putting
>>them in OTHER_CPLUSPLUSFLAGS will miss .m files I assume.
>>
>>Any way to get these 2 in multi-language projects?
>
>Define a custom rule?
>
>A pattern for .m files that runs a custom script should work.  You could
>put any options you want directly the script, or write the script to use
>shell-variables defined by Xcode settings.

Thanks for your reply Greg.  No offence to your solution (ingenious and
the only one apparently!), but writing a custom script, no matter how
small, is not something I'm going to do just to enable a warning!

<rant>
CodeWarrior had this crazy concept where warnings could be enabled with
checkboxes!  Wild stuff.  :)  With Xcode, trying to enable lots of
warnings is a total PITA.  You have to dig through gcc's man page just
to know what your options are; some can be specified in Xcode's GUI,
some as compiler flags; some have to go in WARNING_CFLAGS, some in
OTHER_CFLAGS, some in OTHER_CPLUSPLUSFLAGS; some are implicitly included
by -Wall/-Wextra, others not; etc. etc.

Sure, gcc offers way more warnings than CodeWarrior, but honestly, I
would rather see 100 checkboxes than the mess that exists now.

This is a great example of what Mark Munz just said: "I believe that the
CLI is too often used as a crutch (cop-out) for not being able to
provide a real UI. Xcode is a *perfect* example of this".
</rant>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Enabling language-specific warnings in multi-language projects (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.