Patchwork [1/2,nft] parser: fix warning on deprecated directive in bison

login
register
mail settings
Submitter Pablo Neira
Date Nov. 15, 2013, 9:06 a.m.
Message ID <1384506365-4342-1-git-send-email-pablo@netfilter.org>
Download mbox | patch
Permalink /patch/291512/
State Accepted
Headers show

Comments

Pablo Neira - Nov. 15, 2013, 9:06 a.m.
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(-)

Patch

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 }