diff options
-rw-r--r-- | libbutl/buildfile | 6 |
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 |