From: Karel Zak Date: Fri, 3 Nov 2023 08:30:38 +0000 (+0100) Subject: github: fix build with clang and in ubuntu build-root X-Git-Tag: v2.40-rc1~151^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90683b1a344893e6b157212b1335dc6b7dbf7f84;p=thirdparty%2Futil-linux.git github: fix build with clang and in ubuntu build-root Signed-off-by: Karel Zak --- diff --git a/.github/workflows/cibuild-setup-ubuntu.sh b/.github/workflows/cibuild-setup-ubuntu.sh index bcd46c719f..34774d3a42 100755 --- a/.github/workflows/cibuild-setup-ubuntu.sh +++ b/.github/workflows/cibuild-setup-ubuntu.sh @@ -30,6 +30,8 @@ PACKAGES=( dmsetup python3-dev gawk + bison + flex ) PACKAGES_OPTIONAL=( diff --git a/libsmartcols/src/filter-parser.y b/libsmartcols/src/filter-parser.y index 0af556c25a..d9bc2e1b6e 100644 --- a/libsmartcols/src/filter-parser.y +++ b/libsmartcols/src/filter-parser.y @@ -1,4 +1,11 @@ %{ +#ifdef __clang__ +/* clang detects yynerrs as unused. + * Will be fixed in future versions of bison. + */ +#pragma clang diagnostic ignored "-Wunused-but-set-variable" +#endif + #include #include "smartcolsP.h"