Disable compiler warning because of a bug in flex-2.5.31
authorDavid Schleef <ds@schleef.org>
Fri, 11 Apr 2003 21:44:04 +0000 (21:44 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 11 Apr 2003 21:44:04 +0000 (21:44 +0000)
Original commit message from CVS:
Disable compiler warning because of a bug in flex-2.5.31

gst/parse/Makefile.am

index 4da7795..b17cacd 100644 (file)
@@ -6,8 +6,12 @@ CLEANFILES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c grammar.output
 
 EXTRA_DIST = grammar.y parse.l types.h
 
+# flex 2.5.31 produces code that causes compilation warnings
+# (and thus errors)
+DISABLE_FLEX_WARNING = -Wno-unused-function
+
 nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
-libgstparse_la_CFLAGS = $(GST_CFLAGS)
+libgstparse_la_CFLAGS = $(GST_CFLAGS) $(DISABLE_FLEX_WARNING)
 libgstparse_la_LIBADD = $(LIBGST_LIBS)
 
 noinst_HEADERS = grammar.tab.h