From 3cff17133342a6edf438c8614fe630728e88d8c0 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Thu, 28 Oct 2021 21:14:00 +0200 Subject: [PATCH] Fix -Wunused-but-set-variable. Bug: None Change-Id: Idc55e5d4ef522349f0d76f10dd2738408ab994e3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236586 Reviewed-by: Per Kjellander Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#35282} --- modules/video_capture/windows/help_functions_ds.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/video_capture/windows/help_functions_ds.cc b/modules/video_capture/windows/help_functions_ds.cc index ad4c064d06..58b9de91c7 100644 --- a/modules/video_capture/windows/help_functions_ds.cc +++ b/modules/video_capture/windows/help_functions_ds.cc @@ -60,7 +60,6 @@ IPin* GetInputPin(IBaseFilter* filter) { } IPin* GetOutputPin(IBaseFilter* filter, REFGUID Category) { - HRESULT hr; IPin* pin = NULL; IEnumPins* pPinEnum = NULL; filter->EnumPins(&pPinEnum); @@ -68,7 +67,7 @@ IPin* GetOutputPin(IBaseFilter* filter, REFGUID Category) { return NULL; } // get first unconnected pin - hr = pPinEnum->Reset(); // set to first pin + pPinEnum->Reset(); // set to first pin while (S_OK == pPinEnum->Next(1, &pin, NULL)) { PIN_DIRECTION pPinDir; pin->QueryDirection(&pPinDir);