From 9ce32d7d20850290deeef2a27a989a87c01a94cd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 20 Apr 2021 20:47:42 +0300 Subject: Disable bunch of bogus GCC warnings --- build/root.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/root.build b/build/root.build index 627f0ee..11c109f 100644 --- a/build/root.build +++ b/build/root.build @@ -10,12 +10,15 @@ ixx{*}: extension = ixx txx{*}: extension = txx cxx{*}: extension = cxx -cxx.poptions =+ "-I$out_root" "-I$src_root" - # Disable "unknown pragma" warnings. # cxx.coptions += -Wno-unknown-pragmas +if ($cxx.id == 'gcc') + cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl + +cxx.poptions =+ "-I$out_root" "-I$src_root" + # Load the cli module but only if it's available. This way a distribution # that includes pre-generated files can be built without installing cli. # This is also the reason why we need to explicitly spell out individual -- cgit v1.1