parser: fix warning on deprecated directive in bison
Pablo Neira Ayuso
maintainerPATCH 1/2 parser: fix warning on deprecated directive in bison
src/parser.y:93.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated]
%name-prefix="nft_"
^^^^^^^^^^^^^
Reported-by Anatol Pomozov <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/parser.y +1 -1
@@ -90,7 +90,7 @@ static void location_update(struct location *loc, struct location *rhs, int n) /* Declaration section */ -%name-prefix="nft_" +%name-prefix "nft_" %debug %pure-parser %parse-param { void *scanner }
Signature · 6 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerPATCH 2/2 build: relax compilation not to break on warning
Remove -Werror, as bison and flex generate unclean code that may break compilation.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- Makefile.defs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.defs.in +1 -1
@@ -28,7 +28,7 @@ CFLAGS += -include config.h CFLAGS += -Iinclude CFLAGS += -fno-strict-aliasing -CFLAGS += -Wall -Werror +CFLAGS += -Wall CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations CFLAGS += -Wdeclaration-after-statement -Wsign-compare -Winit-self CFLAGS += -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute
Signature · 1 line
1.7.10.4