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