1. When I build the Apple Sample Code GLES2Sample (for iOS 4.1) in Xcode 3.2.4 
for the Device with "Run Static Analyzer" checked  the analyser tells me about 
destroyShaders() in Shaders.m that "the value stored to vertShader is never 
read".

The Apple code is:

/* delete shader resources */
void destroyShaders(GLuint vertShader, GLuint fragShader, GLuint prog)
{       
        if (vertShader) {
                glDeleteShader(vertShader);
                vertShader = 0;   <---- this is the offending statement.
        }
        [...]
}

I think that the analyzer is right. But what was the point of Apples code?


2. When I build for the Simulator the analyzer stops working for CGPDFContext.h 
with the statement: "expected function body after function declarator".
The offending line in CGPDFContext.h is:
CG_EXTERN void CGPDFContextAddDocumentMetadata(CGContextRef context,
  CFDataRef metadata) CG_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_0);

Obviously something is messed up, but what can I do to fix this?


Kind regards,

Gerriet.




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to