From: Andres Mejia Date: Fri, 24 Feb 2012 16:37:28 +0000 (-0500) Subject: Make warnings enabled match what is enabled for cmake builds. X-Git-Tag: v3.0.4~2^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09bd21c9518c6554514fb84370707a6a011d1dfb;p=thirdparty%2Flibarchive.git Make warnings enabled match what is enabled for cmake builds. --- diff --git a/Makefile.am b/Makefile.am index 69b3928f3..4856d2308 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,9 +21,11 @@ TESTS= libarchive_test $(bsdtar_test_programs) $(bsdcpio_test_programs) TESTS_ENVIRONMENT= $(libarchive_TESTS_ENVIRONMENT) $(bsdtar_TESTS_ENVIRONMENT) $(bsdcpio_TESTS_ENVIRONMENT) # Always build and test both bsdtar and bsdcpio as part of 'distcheck' DISTCHECK_CONFIGURE_FLAGS = --enable-bsdtar --enable-bsdcpio +COMMON_CFLAGS=-Wall # The next line is commented out by default in shipping libarchive releases. # It is uncommented by default in trunk. -AM_CFLAGS=-Wall -Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual +DEV_CFLAGS=-Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual +AM_CFLAGS=$(COMMON_CFLAGS) $(DEV_CFLAGS) PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@ AM_CPPFLAGS=$(PLATFORMCPPFLAGS)