Skip to content

Fix missing bison argument quoting#11

Open
hhoffstaette wants to merge 1 commit intonondeterministic:masterfrom
hhoffstaette:bison-warning
Open

Fix missing bison argument quoting#11
hhoffstaette wants to merge 1 commit intonondeterministic:masterfrom
hhoffstaette:bison-warning

Conversation

@hhoffstaette
Copy link
Contributor

Passing a value to bison via -D with or without quotes is deprecated:

bison -y -d -v --file-prefix=rc -Dapi.prefix=rc --defines=rcparser.hh rcfile.yy;  \
	   mv rc.tab.c rcparser.cc
<command line>:5: warning: %define variable 'api.prefix' requires '{...}' values [-Wdeprecated]

Fix this by correctly quoting the values with curly braces.

Passing a value to bison via -D with or without quotes is deprecated:

bison -y -d -v --file-prefix=rc -Dapi.prefix=rc --defines=rcparser.hh rcfile.yy;  \
	   mv rc.tab.c rcparser.cc
<command line>:5: warning: %define variable 'api.prefix' requires '{...}' values [-Wdeprecated]

Fix this by correctly quoting the values with curly braces.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant