]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
build: Tolerate unused-but-set in generated lexer/bison files
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 24 Aug 2023 00:32:26 +0000 (02:32 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 12 Dec 2023 16:18:18 +0000 (17:18 +0100)
We don't really control the small aspects of generated files and NetBSD
version has an unused variable that is then detected by gcc as warning
that is then promoted to error.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Makefile.util.def
grub-core/Makefile.core.def

index 6fe08efd8bdb4ae5e3efdf5a58add3b48bbc2c95..9432365a9df699f0fef5f72ecd0284731f251dd5 100644 (file)
@@ -55,7 +55,7 @@ library = {
 
 library = {
   name = libgrubmods.a;
-  cflags = '-fno-builtin -Wno-undef';
+  cflags = '-fno-builtin -Wno-undef -Wno-unused-but-set-variable';
   cppflags = '-I$(srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -I$(srcdir)/grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H';
 
   common_nodist = grub_script.tab.c;
index d2cf29584a1ab0620ecaf1bf979e2e539fdb522c..1571421d7e84e6ef4279941ff2c5bba1ceedcefb 100644 (file)
@@ -1993,7 +1993,7 @@ module = {
   extra_dist = script/yylex.l;
   extra_dist = script/parser.y;
 
-  cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
+  cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls -Wno-unused-but-set-variable';
   cppflags = '$(CPPFLAGS_POSIX)';
 };