aboutsummaryrefslogtreecommitdiff
path: root/libbutl/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/buildfile')
-rw-r--r--libbutl/buildfile11
1 files changed, 8 insertions, 3 deletions
diff --git a/libbutl/buildfile b/libbutl/buildfile
index 6526900..5398f71 100644
--- a/libbutl/buildfile
+++ b/libbutl/buildfile
@@ -27,9 +27,8 @@ windows = ($tclass == 'windows')
#
lib{butl}: {hxx ixx cxx}{win32-utility}: include = $windows
-# Our C-files are included into sha256.cxx (sha256c.c) and timestamp.cxx
-# (strptime.c timelocal.h timelocal.c), so treat them as files exclude from
-# the compilation.
+# Our C-files are always included into C++-files that wrap the corresponding
+# API so treat them as files exclude from the compilation.
#
lib{butl}: file{*.c *.h}
@@ -40,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