aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/root.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
index 3ee60eb..17e42b1 100644
--- a/build/root.build
+++ b/build/root.build
@@ -22,6 +22,9 @@ elif ($cxx.id == 'gcc')
#
cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object \
-Wno-stringop-overread
+
+ 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