Makefile.am: don't let sparse scan C++ sources

sparse cannot deal with C++.
This commit is contained in:
Max Kellermann 2009-03-14 14:30:02 +01:00
parent 0a1db6cbc9
commit bd833f64e2

View File

@ -523,7 +523,7 @@ SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
SPARSE_CPPFLAGS += -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 \
-D__INT_MAX__=2147483647 -D__LONG_MAX__=2147483647
sparse-check:
for i in $(src_mpd_SOURCES); \
for i in $(filter-out %.cxx,$(src_mpd_SOURCES)); \
do \
$(SPARSE) -I. $(src_mpd_CFLAGS) $(src_mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \
done