[FFmpeg-devel] [PATCH] libavutil/riscv: add fallthrough comment to switch (PR #20282)
kxxt
code at ffmpeg.org
Tue Aug 19 06:27:40 EEST 2025
PR #20282 opened by kxxt
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20282
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20282.patch
This fixes the following warning:
libavutil/riscv/cpu.c:85:9: warning: label at end of compound statement is a C23 extension [-Wc23-extensions]
Signed-off-by: Levi Zim <rsworktech at outlook.com>
From 9cc510a040f3002590e6c364473a7645d81c3fe6 Mon Sep 17 00:00:00 2001
From: Levi Zim <rsworktech at outlook.com>
Date: Tue, 19 Aug 2025 11:22:37 +0800
Subject: [PATCH] libavutil/riscv: add fallthrough comment to switch
This fixes the following warning:
libavutil/riscv/cpu.c:85:9: warning: label at end of compound statement is a C23 extension [-Wc23-extensions]
Signed-off-by: Levi Zim <rsworktech at outlook.com>
---
libavutil/riscv/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c
index 163e4fc14a..5d7673ad11 100644
--- a/libavutil/riscv/cpu.c
+++ b/libavutil/riscv/cpu.c
@@ -82,6 +82,7 @@ int ff_get_cpu_flags_riscv(void)
ret |= AV_CPU_FLAG_RV_MISALIGNED;
break;
default:
+ ; /* do nothing */
}
}
#elif HAVE_GETAUXVAL || HAVE_ELF_AUX_INFO
--
2.49.1
More information about the ffmpeg-devel
mailing list