From: Florian Krohm Date: Tue, 21 Oct 2025 17:45:52 +0000 (+0000) Subject: Fix a compiler warning about an unused variable on some platforms. X-Git-Tag: VALGRIND_3_26_0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1b92c02dcda9df53102a9a236aee68fb3e95426;p=thirdparty%2Fvalgrind.git Fix a compiler warning about an unused variable on some platforms. --- 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