]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a compiler warning about an unused variable on some platforms.
authorFlorian Krohm <flo2030@eich-krohm.de>
Tue, 21 Oct 2025 17:45:52 +0000 (17:45 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Tue, 21 Oct 2025 17:45:52 +0000 (17:45 +0000)
coregrind/m_debuginfo/readdwarf.c

index 3cc00d3176a9692fd0981c6c82e8f3583ffbdb27..3b5c6be703df1053bfc27ab02bae5da36255c2b9 100644 (file)
@@ -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