[PATCH] elaborate.cxx: fix build with GCC 13

Andreas Schwab schwab@suse.de
Tue Jul 22 08:54:56 GMT 2025


Ignore -Wdangling-pointer also with GCC 13
---
 elaborate.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elaborate.cxx b/elaborate.cxx
index d93a83eca..93ecffa1a 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -2656,7 +2656,7 @@ symresolution_info::symresolution_info (systemtap_session& s, bool omniscient_un
   session (s), unmangled_p(omniscient_unmangled), current_function (0), current_probe (0)
 {
   #pragma GCC diagnostic push
-  #if __GNUC__ >= 14
+  #if __GNUC__ >= 13
   // c10s early snapshot GCC complains about this construct, which is
   // made safe via our dtor usage
   #pragma GCC diagnostic ignored "-Wdangling-pointer"
-- 
2.50.1


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Systemtap mailing list