From 103b7ca27c85164f3d6e45ee09e43028ee5d6e59 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 26 Jun 2023 18:22:15 +0300 Subject: Suppress -Wdangling-reference GCC 13 warning --- build/root.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build') diff --git a/build/root.build b/build/root.build index d86f7be..3dbc0cf 100644 --- a/build/root.build +++ b/build/root.build @@ -19,7 +19,12 @@ cxx{*}: extension = cxx cxx.coptions += -Wno-unknown-pragmas if ($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 -- cgit v1.1