• 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: #pragma doesn't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma doesn't


  • Subject: Re: #pragma doesn't
  • From: Keary Suska <email@hidden>
  • Date: Thu, 24 Dec 2009 09:48:40 -0700

On Dec 24, 2009, at 8:56 AM, Charlie Dickman wrote:

> Yes, it does but, according to the documentation, it doesn't have to.

Perhaps it's debatable, but the docs state "this pragma may appear anywhere within the variables' scopes", which implies that it should.

In any case, you will need to show where your variable is declared as well as the complete method or block for which the warning is showing, and where the #pragma is specified.

It should work for GCC, but note that it may not work for clang.

> On Dec 24, 2009, at 10:10 AM, Keary Suska wrote:
>
>> On Dec 23, 2009, at 6:21 PM, Charlie Dickman wrote:
>>
>>> According to the documentation #pragma unused (iVar) is supposed to suppress any unused variable warning for iVar but it doesn't. Anybody know what gives?
>>
>> Does the #pragma appear within the scope of "iVar"?


Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

 _______________________________________________
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: #pragma doesn't
      • From: Quincey Morris <email@hidden>
References: 
 >#pragma doesn't (From: Charlie Dickman <email@hidden>)
 >Re: #pragma doesn't (From: Keary Suska <email@hidden>)
 >Re: #pragma doesn't (From: Charlie Dickman <email@hidden>)

  • Prev by Date: Connecting an NSProgressIndicator
  • Next by Date: Re: Connecting an NSProgressIndicator
  • Previous by thread: Re: #pragma doesn't
  • Next by thread: Re: #pragma doesn't
  • Index(es):
    • Date
    • Thread