summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-01-20 12:52:33 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2018-01-20 12:52:33 (GMT)
commitbb1761f596e792fa2552ad246b603a9a58d4ecae (patch)
treed0fda6b691194ac1a482ac30e42bec25606423b2
parent63fc81f84d3ecbbeb5ae336dae0f1be07aa329b4 (diff)
downloadlibnslog-master.tar.gz
libnslog-master.tar.bz2
Silence compiler warningHEADmaster
-rw-r--r--src/filter-lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filter-lexer.l b/src/filter-lexer.l
index bbd11eb..f640d48 100644
--- a/src/filter-lexer.l
+++ b/src/filter-lexer.l
@@ -26,6 +26,8 @@
#define YYLTYPE FILTER_LTYPE
#endif
+/* Ensure we use yylloc to silence "variable `yylloc` set but not used" warning */
+#define YY_USER_ACTION yylloc->first_line = yylloc->last_line = yylineno;
%}