Silence `POSIX Yacc` warnings
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Mar 2020 02:06:01 +0000 (22:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Mar 2020 02:06:49 +0000 (22:06 -0400)
commit3ec89b08ee373842b6be05d01a6e4aabd6db21a0
tree0f04c87a60851994ff2df92b9fabdb2d46d5118f
parent52dc69b2dc349a43f108a9926b0794ee6b6ec4c3
Silence `POSIX Yacc` warnings

Flex/Bison warn that we make use of two non-POSIX directives,
%code and %define. Coincidentally, we don't use POSIX Yacc!

From the bison documentation, "[...] -Wno-yacc will hide the warnings
about POSIX Yacc incompatibilities." [1].

Thus, this flag is added to the YFLAGS.

  YACC     filter-parser.c
/home/jgalar/EfficiOS/src/lttng-tools/src/lib/lttng-ctl/filter/filter-parser.y:293.1-5:
warning: POSIX Yacc does not support %code [-Wyacc]
  293 | %code provides
      | ^~~~~
/home/jgalar/EfficiOS/src/lttng-tools/src/lib/lttng-ctl/filter/filter-parser.y:301.1-7:
warning: POSIX Yacc does not support %define [-Wyacc]
  301 | %define api.pure
      | ^

[1] https://www.gnu.org/software/bison/manual/html_node/Diagnostics.html

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iaf65534bc47514d3a99b97ce414880a6afc723b9
src/lib/lttng-ctl/filter/Makefile.am
This page took 0.033904 seconds and 4 git commands to generate.