Fix warnings with bison >= 3.4 and autoconf < 2.70
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 11 Jul 2019 18:59:47 +0000 (14:59 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 12 Jul 2019 04:25:32 +0000 (00:25 -0400)
commit042f640b9ea87bcc17a2a9ff95801b1213f6ba2e
treeface0606ba4b5e6275a26ea7c940dfe8460c28a8
parentafe821caedf56baa63d94c5b7b87805922db7a7c
Fix warnings with bison >= 3.4 and autoconf < 2.70

Autoconf up to version 2.69 calls bison with '-y' to keep the output
filenames the same fixed values as the original YACC so the Makefiles
stay compatible with both tools. Starting with Bison 3.4 using '-y' will
generate warnings for non-POSIX YACC statements.

Our parser is not compatible with POSIX YACC, we already check for Bison
in the configure script. Bump the minimal version to 2.5 and add
'-Wno-yacc' to disable the warnings.

Autoconf 2.70 will drop the '-y' and use '-o y.tab.c' to get the same
behavior without enabling the warnings which will still work with this
workaround.

Change-Id: Iad3ba0dcfd9e6b4e2727236abd6ecb4a83de0c70
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1690
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
configure.ac
src/plugins/ctf/common/metadata/Makefile.am
This page took 0.024344 seconds and 4 git commands to generate.