On Apr 1, 2015, at 12:52 PM, Jens Alfke wrote: > >> On Apr 1, 2015, at 9:31 AM, Alex Zavatone <[email protected]> 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. >
Yeah, it's #ifdefed, but the warning is being triggered in the Debug build where it actually works. AHHH. Someone changed DEBUG to DEBUG_MODE. Could someone tell me where in the project are these variables defined so I can tell just how this project has been messed with? Thanks much. > 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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
