From f836462415a6da7338a27be052229adb9c7c447d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Mar 2021 12:49:53 +0200 Subject: Fixes --- libbutl/buildfile | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.1