From 6e530d4c5790229e2ebd7faa8e1e138b6156e1ff Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 26 Jun 2023 20:49:04 +0300 Subject: [PATCH] Suppress -Wdangling-reference GCC 13 warning --- libbuild2-autoconf/build/root.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbuild2-autoconf/build/root.build b/libbuild2-autoconf/build/root.build index cb0e129..d387415 100644 --- a/libbuild2-autoconf/build/root.build +++ b/libbuild2-autoconf/build/root.build @@ -13,6 +13,11 @@ if ($cxx.target.system == 'win32-msvc') if ($cxx.class == 'msvc') cc.coptions += /wd4251 /wd4275 /wd4800 elif ($cxx.id == 'gcc') +{ cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl + + if ($cxx.version.major >= 13) + cxx.coptions += -Wno-dangling-reference +} elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15) cxx.coptions += -Wno-unqualified-std-cast-call