From 7e1d72589eca162d65987a9f6004417656fb6077 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Mon, 9 Sep 2024 16:37:26 +0200 Subject: [PATCH] avfilter/af_afftdn: use av_assert0 for unreachable assert This is unreachable anyway so performance is not an issue here. Allows guiding the compiler in all build modes to not emit a spurious warning here: warning: variable 'mag' is used uninitialized whenever switch default is taken --- libavfilter/af_afftdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c index fd6b2b2685..eba5834420 100644 --- a/libavfilter/af_afftdn.c +++ b/libavfilter/af_afftdn.c @@ -379,7 +379,7 @@ static void process_frame(AVFilterContext *ctx, noisy_data[i] = mag = hypot(fft_data_dbl[i].re, fft_data_dbl[i].im); break; default: - av_assert2(0); + av_assert0(0); } power = mag * mag;