From 82da57b7cea06d461aa60b322ee217627041613b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 31 May 2021 16:49:45 +0200 Subject: [PATCH] decoder/ffmpeg: suppress -Wunused with libavformat<58.6.100 --- src/decoder/plugins/FfmpegDecoderPlugin.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index 889062ee6..891f7846a 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -470,6 +470,7 @@ IsSeekable(const AVFormatContext &format_context) noexcept #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(58, 6, 100) return (format_context.ctx_flags & AVFMTCTX_UNSEEKABLE) != 0; #else + (void)format_context; return false; #endif }