]> granicus.if.org Git - php/commit
Bison: enable all the warnings and fix them
authorAkim Demaille <akim.demaille@gmail.com>
Sat, 1 Feb 2020 06:03:13 +0000 (07:03 +0100)
committerkocsismate <kocsismate@woohoolabs.com>
Sat, 1 Feb 2020 13:21:21 +0000 (14:21 +0100)
commit2127a37b833a863e28a4692e7394613b89c89290
tree73337ca9b08c5b5aca5ef6d7c9f0c2c58a08f633
parentb97c9dc72a642bd0fe2e4f59fbb9c0c818addefa
Bison: enable all the warnings and fix them

First, fix 5547d361208d90e12d53bb62bb2ffbbff9b93ca0: the definition of
YFLAGS was not passed into the Makefile: AC_SUBST does not suffice, we
need PHP_SUBST_OLD.  While at it, allow to pass variable and value at
the same time.

Then pass -Wall to bison, rather than only -Wempty-rules.

Use %precedence where associativity is useless.

Remove useless %precedence.
GH-5138
Zend/zend_ini_parser.y
Zend/zend_language_parser.y
build/php.m4