[FFmpeg-devel] [PATCH 2/2] avdevice/dshow: silence warnings about unused variable

James Almer jamrial at gmail.com
Wed Apr 13 19:15:15 EEST 2022


Use av_unused instead of wrapping the declaration under the DSHOWDEBUG check
in case future changes make use of it.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index ac8b64366f..6277a27453 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -976,7 +976,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
             }
         } else {
             WAVEFORMATEX *fx;
-            AUDIO_STREAM_CONFIG_CAPS *acaps = caps;
+            AUDIO_STREAM_CONFIG_CAPS av_unused *acaps = caps;
 #if DSHOWDEBUG
             ff_print_AUDIO_STREAM_CONFIG_CAPS(acaps);
 #endif
-- 
2.35.1



More information about the ffmpeg-devel mailing list