From 43aa35c2ef4fe03e2d9111fc077d0553b17b7f31 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Thu, 30 Apr 2026 16:28:56 +0200 Subject: [PATCH] Fix compilation with DYNAMIC_TARGET=1 and BUILD_BFLOAT16 coremsg isn't defined outside the BUILD_BFLOAT16 and BUILD_HFLOAT16 blocks, leading to the use of an undefined variable --- driver/others/dynamic_riscv64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/others/dynamic_riscv64.c b/driver/others/dynamic_riscv64.c index 321e0875f0..ec7fe8f55e 100644 --- a/driver/others/dynamic_riscv64.c +++ b/driver/others/dynamic_riscv64.c @@ -152,6 +152,7 @@ char* gotoblas_corename(void) { static gotoblas_t* get_coretype(void) { uint64_t vector_mask; unsigned vlenb = 0; + char coremsg[128]; #if !defined(OS_LINUX) return NULL;