diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-26 18:22:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-26 18:22:15 +0300 |
commit | 103b7ca27c85164f3d6e45ee09e43028ee5d6e59 (patch) | |
tree | ed9110be85c5572b26f2e77279bfe825e7950f68 | |
parent | 2f5637027550139c2d5f716540060e7626ac0803 (diff) |
Suppress -Wdangling-reference GCC 13 warning
-rw-r--r-- | build/root.build | 5 |
1 files changed, 5 insertions, 0 deletions
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 |