summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-31 16:49:45 +0200
committerMax Kellermann <max@musicpd.org>2021-05-31 16:49:48 +0200
commit82da57b7cea06d461aa60b322ee217627041613b (patch)
tree29ed0f1d07dd5b9472689e3733ff77fdaf65bb5f
parentaa6dac9bd2925bcb402530eae68cca36897ebd20 (diff)
decoder/ffmpeg: suppress -Wunused with libavformat<58.6.100
-rw-r--r--src/decoder/plugins/FfmpegDecoderPlugin.cxx1
1 files changed, 1 insertions, 0 deletions
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
}