Re: Warnings triggered when
Re: Warnings triggered when
- Subject: Re: Warnings triggered when
- From: Jens Alfke <email@hidden>
- Date: Wed, 01 Apr 2015 09:52:52 -0700
On Apr 1, 2015, at 9:31 AM, Alex Zavatone < email@hidden> wrote:
A DLog macro has been added to the app's.pch and if the variable is created in a method and then accessed through DLog to output its value to the screen, Xcode isn't catching that it is being accessed.
Is the DLog macro #ifdef’d so it does nothing in a Release build? If so, the Release build will generate those warnings since the variable isn’t being used.
You can work around this by prefixing the variable’s declaration with “__unused” so signal that it’s OK if the value isn’t used.
—Jens |
_______________________________________________
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