aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-06-26 16:20:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-06-26 22:13:52 +0300
commit6acaebbf1e0b466f9fdca90e257c5698ffa8690e (patch)
treee138eb80395ec13ba582785531d7d2f748b79ced
parent0d54162d02718f3b9cfcb4ee72e34e6fcba04138 (diff)
Suppress -Wdangling-reference GCC 13 warning
-rw-r--r--build/root.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
index a6502cf..8c7f674 100644
--- a/build/root.build
+++ b/build/root.build
@@ -16,7 +16,12 @@ if ($cxx.target.system == 'win32-msvc')
if ($cxx.class == 'msvc')
cxx.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