* Makefile.in (WARN_CFLAGS): Get it from configure.

(WERROR_CFLAGS): New.
	(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
	* configure.ac: Introduce --enable-werror, which adds -Werror to
	the compiler command line.  Enabled by default.  Disable with
	--disable-werror.  Add -Wdeclaration-after-statement
	Wpointer-arith and -Wformat-nonliteral to warning flags.
	* configure: Regenerate.
This commit is contained in:
Pedro Alves 2010-08-26 18:36:28 +00:00
parent d4596a3d79
commit fd4679698a

View file

@ -1,3 +1,14 @@
2010-08-26 Pedro Alves <pedro@codesourcery.com>
* Makefile.in (WARN_CFLAGS): Get it from configure.
(WERROR_CFLAGS): New.
(INTERNAL_CFLAGS): Add WERROR_CFLAGS.
* configure.ac: Introduce --enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror. Add -Wdeclaration-after-statement
Wpointer-arith and -Wformat-nonliteral to warning flags.
* configure: Regenerate.
2010-08-26 Pedro Alves <pedro@codesourcery.com> 2010-08-26 Pedro Alves <pedro@codesourcery.com>
* mem-break.c [HAVE_MALLOC_H]: Include malloc.h. * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.