Fix unused variable warnings

Remove some unused variables and add unused attribute to other variables

PiperOrigin-RevId: 481706551
This commit is contained in:
MediaPipe Team
2022-10-17 12:14:55 -07:00
committed by Copybara-Service
parent f6c2f86086
commit 5e543c506f
4 changed files with 10 additions and 19 deletions
+1 -3
View File
@@ -287,9 +287,7 @@ REGISTER_CALCULATOR(ErrorCalculator);
CFHolder<CVPixelBufferRef> inputBuffer;
absl::Status status = CreateCVPixelBufferFromCGImage(_sourceImage.CGImage, &inputBuffer);
XCTAssert(status.ok());
CVPixelBufferRef outputBuffer = [self runGraph:_graph
withPixelBuffer:*inputBuffer
packetType:MPPPacketTypePixelBuffer];
[self runGraph:_graph withPixelBuffer:*inputBuffer packetType:MPPPacketTypePixelBuffer];
__weak MPPGraph* weakGraph = _graph;
_graph = nil;
XCTAssertNil(weakGraph);