Commit c87ae9fe4b for ffmpeg
commit c87ae9fe4bb9e9496b653e27289b5b392fdcb19f
Author: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Thu Nov 5 10:17:37 2026 +0100
avfilter/vf_limiter_init: Fix placement of av_unused
In C23 mode av_unused expands to [[maybe_unused]] and
the C23 standard attributes have stricter constraints
(which are not fulfilled here) on where they are allowed to appear.
Reviewed-by: Marvin Scholz <epirat07@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
diff --git a/libavfilter/vf_limiter_init.h b/libavfilter/vf_limiter_init.h
index f8e0a3319d..fad61dfb38 100644
--- a/libavfilter/vf_limiter_init.h
+++ b/libavfilter/vf_limiter_init.h
@@ -48,7 +48,7 @@ static void limiter##n(const uint8_t *ssrc, uint8_t *ddst, \
LIMITER(8, uint8_t)
LIMITER(16, uint16_t)
-static av_unused void ff_limiter_init(LimiterContext *s, int depth)
+av_unused static void ff_limiter_init(LimiterContext *s, int depth)
{
if (depth == 8) {
s->dsp.limiter = limiter8;