diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-20 20:47:42 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-20 20:47:42 +0300 |
commit | 9ce32d7d20850290deeef2a27a989a87c01a94cd (patch) | |
tree | 12140f2fcc04d8fcb5ba35ee16ca6156c6157ea8 /build | |
parent | 0df01bfd758c28bde6de51d97d8f2b8370eaa385 (diff) |
Disable bunch of bogus GCC warnings
Diffstat (limited to 'build')
-rw-r--r-- | build/root.build | 7 |
1 files changed, 5 insertions, 2 deletions
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 |