From 529c5b84dbef2870ff64421d2a6c2df2267f625b Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 2 Feb 2010 21:52:59 +0200 Subject: [PATCH] * src/Makefile.am: add AM_CFLAGS, AM_CXXFLAGS with strict warnings (but no -Werror as we don't want to break builds if some compiler other than mine barfs) --- src/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 7b8fefea..784e76ad 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,6 +26,12 @@ endif INCLUDES=$(XAPIAN_CXXFLAGS) $(GMIME_CFLAGS) $(GLIB_CFLAGS) +# don't use -Werror, as it might break on other compilers +# use -Wno-unused-parameters, because some callbacks may not +# really need all the params they get +AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter +AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter + bin_PROGRAMS= \ mu