aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-12 12:49:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-12 12:49:53 +0200
commitf836462415a6da7338a27be052229adb9c7c447d (patch)
treeb9712a7b65f8416cb3f0698138659598ee481731
parent5159b9cb910d76128f68cd4ee36a9c13bac17730 (diff)
Fixeslz4
-rw-r--r--libbutl/buildfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/buildfile b/libbutl/buildfile
index df21f48..5398f71 100644
--- a/libbutl/buildfile
+++ b/libbutl/buildfile
@@ -39,6 +39,12 @@ lib{butl}: cxx{uuid-macos}: include = ($tclass == 'macos')
lib{butl}: cxx{uuid-windows}: include = $windows
lib{butl}: cxx{uuid-freebsd}: include = ($tsys == 'freebsd' || $tsys == 'netbsd')
+# GCC prior to version 6 has flaky `#pragma GCC diagnostic` so we have to
+# disable certain warnings outright.
+#
+if ($cxx.id == 'gcc' && $cxx.version.major < 6)
+ cc.coptions += -Wno-unused-function
+
# Additional system libraries.
#
switch $tclass, $tsys