• 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: 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

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

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