From eb895a7db6e261f4dbae9662299115fa36998052 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 9 Mar 2020 22:06:01 -0400 Subject: [PATCH] Silence `POSIX Yacc` warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Change-Id: Iaf65534bc47514d3a99b97ce414880a6afc723b9 --- src/lib/lttng-ctl/filter/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lttng-ctl/filter/Makefile.am b/src/lib/lttng-ctl/filter/Makefile.am index e338eee6e..b076633ad 100644 --- a/src/lib/lttng-ctl/filter/Makefile.am +++ b/src/lib/lttng-ctl/filter/Makefile.am @@ -24,7 +24,7 @@ libfilter_la_SOURCES = \ libfilter_la_CFLAGS = -include filter-symbols.h $(AM_CFLAGS) libfilter_la_LIBADD = $(top_builddir)/src/common/string-utils/libstring-utils.la -AM_YFLAGS = -t -d -v +AM_YFLAGS = -t -d -v -Wno-yacc # start with empty files to clean CLEANFILES = -- 2.34.1