Re: Clang analysis: Debug variables "never read."
Re: Clang analysis: Debug variables "never read."
- Subject: Re: Clang analysis: Debug variables "never read."
- From: "Sean McBride" <email@hidden>
- Date: Fri, 2 Oct 2009 13:09:11 -0400
- Organization: Rogue Research Inc.
On 10/2/09 11:57 AM, Fritz Anderson said:
>- (void) wrapSomethingComplicated
>{
> MyObject * localStuff;
> // Lots of prep work going into localStuff
> /// ...
> int errorCode = [self doSomethingComplicated: localStuff];
> [localStuff tearDown];
>}
>
>When I select Build > Build and Analyze in Xcode 3.2, the analyzer
>issues lots of issues of the form "Value stored to 'errorCode' is
>never read." This is correct, as far as it goes, but the non-use is
>intentional.
Rick's solution works, just add:
(void)errorCode;
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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