projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: filter parser fails to build with -Werror
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-parser.ypp
diff --git
a/src/common/filter/filter-parser.ypp
b/src/common/filter/filter-parser.ypp
index 0f11c234d6197f30ab3b9cea48ea749bf6697fbe..fedf0e830b433685830acbe6ea1694432874c71d 100644
(file)
--- a/
src/common/filter/filter-parser.ypp
+++ b/
src/common/filter/filter-parser.ypp
@@
-29,6
+29,14
@@
#define WIDTH_x64_SCANF_IS_A_BROKEN_API "17"
#define WIDTH_lg_SCANF_IS_A_BROKEN_API "4096" /* Hugely optimistic approximation */
#define WIDTH_x64_SCANF_IS_A_BROKEN_API "17"
#define WIDTH_lg_SCANF_IS_A_BROKEN_API "4096" /* Hugely optimistic approximation */
+/*
+ * bison 3.8.2 produces a parser with unused, but set, which results in warnings
+ * at build time.
+ */
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wunused-but-set-variable"
+#endif /* __clang__ */
+
#ifdef DEBUG
static const int print_xml = 1;
#define dbg_printf(fmt, args...) \
#ifdef DEBUG
static const int print_xml = 1;
#define dbg_printf(fmt, args...) \
This page took
0.023516 seconds
and
4
git commands to generate.