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 <rsworkt...@outlook.com>


>From 9cc510a040f3002590e6c364473a7645d81c3fe6 Mon Sep 17 00:00:00 2001
From: Levi Zim <rsworkt...@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 <rsworkt...@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to