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>
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;
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)';
};