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

Submitted by Pablo Neira on Nov. 15, 2013, 9:06 a.m.

Details

Message ID 1384506365-4342-1-git-send-email-pablo@netfilter.org
State Accepted
Headers show

Commit Message

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 hide | download patch | download mbox

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 }