From ece5f671b3536d49b9c70d008f952e65c41198ff Mon Sep 17 00:00:00 2001 From: Reilly Brogan Date: Sun, 8 Feb 2026 13:02:07 -0600 Subject: [PATCH] amd,compiler: fix const errors found with C23 glibc support In glibc 2.43 the strstr function now propagate const to the output, triggering -Wincompatible-pointer-types-discards-qualifiers under clang/gcc with -Werror. Fix two of these cases by adding the const qualifier. cc: mesa-stable Part-of: --- src/amd/vulkan/radv_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index 25004b81fb2..b178e232fe5 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -390,8 +390,8 @@ static void radv_add_split_disasm(const char *disasm, uint64_t start_addr, unsigned *num, struct radv_shader_inst *instructions) { struct radv_shader_inst *last_inst = *num ? &instructions[*num - 1] : NULL; - char *next; - char *repeat = strstr(disasm, "then repeated"); + const char *next; + const char *repeat = strstr(disasm, "then repeated"); while ((next = strchr(disasm, '\n'))) { struct radv_shader_inst *inst = &instructions[*num];