Treating some compiler warnings as errors, but not others?
Treating some compiler warnings as errors, but not others?
- Subject: Treating some compiler warnings as errors, but not others?
- From: Jens Alfke <email@hidden>
- Date: Sun, 31 Jul 2011 11:12:07 -0700
Is there a way to tell the compiler to treat warnings as errors, except for certain warnings? I.e. still flag them, just not as errors?
I always build with -Werror because Objective-C reports so many serious issues as mere warnings (i.e. unknown selectors, or messages not understood by the receiver’s declared class). But with the new errors-while-you-type feature, there are some warnings I’d like to just be notified of without getting a red flag and compilation failure — for example, unused variables.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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