Skip to contentSkip to conversation

parser: fix warning on deprecated directive in bison

PATCH New Pablo Neira Ayuso 1 participant 2 messages Nov 15, 2013

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 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_"
^^^^^^^^^^^^^

---
 src/parser.y |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/parser.y +1 -1
index cfe1e86..a49e5c2 100644
@@ -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
author maintainer
#1 lore raw

PATCH 2/2 build: relax compilation not to break on warning

Remove -Werror, as bison and flex generate unclean code that may break compilation.

---
 Makefile.defs.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.defs.in +1 -1
index 545c4ee..502f374 100644
@@ -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