netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2 nft] parser: fix warning on deprecated directive in bison
@ 2013-11-15  9:06 Pablo Neira Ayuso
  2013-11-15  9:06 ` [PATCH 2/2 nft] build: relax compilation not to break on warning Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-11-15  9:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

src/parser.y:93.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated]
 %name-prefix="nft_"
 ^^^^^^^^^^^^^
Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/parser.y |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser.y b/src/parser.y
index cfe1e86..a49e5c2 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -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 }
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2 nft] build: relax compilation not to break on warning
  2013-11-15  9:06 [PATCH 1/2 nft] parser: fix warning on deprecated directive in bison Pablo Neira Ayuso
@ 2013-11-15  9:06 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-11-15  9:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

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

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 Makefile.defs.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.defs.in b/Makefile.defs.in
index 545c4ee..502f374 100644
--- a/Makefile.defs.in
+++ b/Makefile.defs.in
@@ -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
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-15  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15  9:06 [PATCH 1/2 nft] parser: fix warning on deprecated directive in bison Pablo Neira Ayuso
2013-11-15  9:06 ` [PATCH 2/2 nft] build: relax compilation not to break on warning Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).