From 57ba559ec847b3a62878ff151e71ccf58a6e3470 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 7 Jan 2024 04:25:11 +0200 Subject: [PATCH] Disable -Wdangling-reference in bind_dm3_test for GCC 13 --- test/bind_dm3_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/bind_dm3_test.cpp b/test/bind_dm3_test.cpp index 899c6af..77f9897 100644 --- a/test/bind_dm3_test.cpp +++ b/test/bind_dm3_test.cpp @@ -17,6 +17,11 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#if defined(BOOST_GCC) && BOOST_GCC >= 130000 && BOOST_GCC < 140000 +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113256 +# pragma GCC diagnostic ignored "-Wdangling-reference" +#endif + #include #include #include