]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
github: fix build with clang and in ubuntu build-root
authorKarel Zak <kzak@redhat.com>
Fri, 3 Nov 2023 08:30:38 +0000 (09:30 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
.github/workflows/cibuild-setup-ubuntu.sh
libsmartcols/src/filter-parser.y

index bcd46c719fce7ef12b62964c941724cc55b902c9..34774d3a42b1391d11e48f25b1eff9a405410b49 100755 (executable)
@@ -30,6 +30,8 @@ PACKAGES=(
        dmsetup
        python3-dev
        gawk
+       bison
+       flex
 )
 
 PACKAGES_OPTIONAL=(
index 0af556c25a18831d60e0c87987b2193eb9b288f1..d9bc2e1b6e3fc5fc0fc1c4d0f55a767cad14e6a3 100644 (file)
@@ -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 <stdio.h>
 #include "smartcolsP.h"