Re: #pragma doesn't
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