Build fix: filter parser fails to build with -Werror
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 Feb 2023 18:59:23 +0000 (13:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 6 Feb 2023 16:30:54 +0000 (11:30 -0500)
commit9f2a20195dbdc0e69e1e33abb642242ec7c3e244
treea38e1d2f05e3447371c6f15a9ec849a8dcb2573a
parent006223e549b17eaf86b87b0d7efb748075404260
Build fix: filter parser fails to build with -Werror

Using bison 3.8.2 and clang 15.0.7, the project fails to build with
-Werror as building the generated parser results in the following
warning:

  CXX      filter/libfilter_la-filter-parser.lo
  filter/filter-parser.cpp:1552:9: error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable]
      int yynerrs = 0;
          ^

A pragma directive is inserted to silence the warning and allow the
build to go through.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4c46a5df91bdeca6ad4e2a8ff7f2a98ee94c4f1d
src/common/filter/filter-parser.ypp
This page took 0.025141 seconds and 4 git commands to generate.