• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Warnings triggered when
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings triggered when


  • Subject: Re: Warnings triggered when
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 01 Apr 2015 13:13:10 -0400


On Apr 1, 2015, at 12:52 PM, Jens Alfke wrote:


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.


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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Warnings triggered when
      • From: Jens Alfke <email@hidden>
References: 
 >Warnings triggered when (From: Alex Zavatone <email@hidden>)
 >Re: Warnings triggered when (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Warnings triggered when
  • Next by Date: Re: Warnings triggered when
  • Previous by thread: Re: Warnings triggered when
  • Next by thread: Re: Warnings triggered when
  • Index(es):
    • Date
    • Thread