Skip to content

Commit

Permalink
Remove 'unused variable' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSannier committed Dec 2, 2015
1 parent 6804faf commit 1d0cd4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions framework/Source/iOS/GPUImageMovieWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ - (void)initializeMovieWithOutputSettings:(NSDictionary *)outputSettings;
// custom output settings specified
else
{
NSString *videoCodec = [outputSettings objectForKey:AVVideoCodecKey];
NSNumber *width = [outputSettings objectForKey:AVVideoWidthKey];
NSNumber *height = [outputSettings objectForKey:AVVideoHeightKey];
__unused NSString *videoCodec = [outputSettings objectForKey:AVVideoCodecKey];
__unused NSNumber *width = [outputSettings objectForKey:AVVideoWidthKey];
__unused NSNumber *height = [outputSettings objectForKey:AVVideoHeightKey];

NSAssert(videoCodec && width && height, @"OutputSettings is missing required parameters.");

Expand Down Expand Up @@ -579,7 +579,7 @@ - (void)createDataFBO;
}


GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
__unused GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);

NSAssert(status == GL_FRAMEBUFFER_COMPLETE, @"Incomplete filter FBO: %d", status);
}
Expand Down
2 changes: 1 addition & 1 deletion framework/Source/iOS/GPUImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ - (void)createDisplayFramebuffer;

glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, displayRenderbuffer);

GLuint framebufferCreationStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
__unused GLuint framebufferCreationStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
NSAssert(framebufferCreationStatus == GL_FRAMEBUFFER_COMPLETE, @"Failure with display framebuffer generation for display of size: %f, %f", self.bounds.size.width, self.bounds.size.height);
boundsSizeAtFrameBufferEpoch = self.bounds.size;
}
Expand Down

0 comments on commit 1d0cd4f

Please sign in to comment.