From ff8caf1d569408a9cfa759e0fa58703cc67f7aae Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Fri, 29 Oct 2021 21:55:04 +0200 Subject: [PATCH] Fix -Wunused-but-set-variable. This is part of a set of CLs to fix the Chromium roll. Bug: None Change-Id: I3b00a4051b4219f8338986ebc4c69fa8318920de Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236681 Commit-Queue: Tommi Reviewed-by: Tommi Cr-Commit-Position: refs/heads/main@{#35286} --- 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 58b9de91c7..b767726107 100644 --- a/modules/video_capture/windows/help_functions_ds.cc +++ b/modules/video_capture/windows/help_functions_ds.cc @@ -30,7 +30,6 @@ LONGLONG GetMaxOfFrameArray(LONGLONG* maxFps, long size) { } IPin* GetInputPin(IBaseFilter* filter) { - HRESULT hr; IPin* pin = NULL; IEnumPins* pPinEnum = NULL; filter->EnumPins(&pPinEnum); @@ -39,7 +38,7 @@ IPin* GetInputPin(IBaseFilter* filter) { } // 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;