Skip to contentSkip to conversation

tc/ematch: fix deprecated yacc warning

PATCH New Stephen Hemminger 1 participant 1 message Apr 24, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc/ematch: fix deprecated yacc warning

Newer versions of Bison deprecated some directives.

YACC emp_ematch.yacc.c
emp_ematch.y:11.1-14: warning: deprecated directive, use ‘%define parse.error verbose’ [-Wdeprecated]
%error-verbose
^~~~~~~~~~~~~~
emp_ematch.y:12.1-22: warning: deprecated directive, use ‘%define api.prefix {ematch_}’ [-Wdeprecated]
%name-prefix "ematch_"

---
 tc/emp_ematch.y | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tc/emp_ematch.y +2 -2
index 2e6cf3530ef2..a02e831aa7ea 100644
@@ -8,8 +8,8 @@
 
 %locations
 %token-table
-%error-verbose
-%name-prefix "ematch_"
+%define parse.error verbose
+%define api.prefix {ematch_}
 
 %union {
 	unsigned int i;
Signature · 1 line
2.20.1