From 646dd44dd9f1e3fc078a339d30927ba48a3ff652 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 8 Feb 2020 21:24:25 +0100 Subject: [PATCH] Silence unused var/func warnings for autogenerated ANTLR files --- src/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 807f9525..0ad66365 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -72,6 +72,11 @@ ANTLR_SRC = \ SMARTPLLexer.c SMARTPLLexer.h SMARTPLParser.c SMARTPLParser.h \ SMARTPL2SQL.c SMARTPL2SQL.h +ANTLR_OBJECTS = \ + RSPLexer.$(OBJEXT) RSPParser.$(OBJEXT) RSP2SQL.$(OBJEXT) \ + DAAPLexer.$(OBJEXT) DAAPParser.$(OBJEXT) DAAP2SQL.$(OBJEXT) \ + SMARTPLLexer.$(OBJEXT) SMARTPLParser.$(OBJEXT) SMARTPL2SQL.$(OBJEXT) + AM_CPPFLAGS += \ $(FORKED_CPPFLAGS) \ $(FORKED_OPTS_CPPFLAGS) \ @@ -154,6 +159,9 @@ EXTRA_DIST = \ $(ANTLR_TOKENS) \ $(ANTLR_DEPS) +# silence unused warnings from antlr generated files +$(ANTLR_OBJECTS): AM_CPPFLAGS += -Wno-unused + # gperf construction rules %_hash.h: %.gperf $(AM_V_GEN)$(GPERF) --output-file=$@ $<