From a1b92c02dcda9df53102a9a236aee68fb3e95426 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Tue, 21 Oct 2025 17:45:52 +0000 Subject: [PATCH] Fix a compiler warning about an unused variable on some platforms. --- coregrind/m_debuginfo/readdwarf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coregrind/m_debuginfo/readdwarf.c b/coregrind/m_debuginfo/readdwarf.c index 3cc00d317..3b5c6be70 100644 --- a/coregrind/m_debuginfo/readdwarf.c +++ b/coregrind/m_debuginfo/readdwarf.c @@ -2366,9 +2366,10 @@ static Bool summarise_context(/*OUT*/Addr* base, *len = 0; VG_(bzero_inline)(si_m, sizeof(*si_m)); - /*const*/ Bool is_s390x_linux = False; # if defined(VGP_s390x_linux) - is_s390x_linux = True; + #define is_s390x_linux True +# else + #define is_s390x_linux False # endif /* Guard against obviously stupid settings of the reg-rule stack -- 2.47.3