Explorar o código

build: Update compiler-warnings flags

Do not use -Werror for now (at leasat until ncurses is fixed). And add
-Wextra -Wno-unused-parameter -Wno-missing-field-initializers.
Guillem Jover %!s(int64=17) %!d(string=hai) anos
pai
achega
5243faaa07
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      m4/compiler.m4

+ 1 - 1
m4/compiler.m4

@@ -8,7 +8,7 @@ AC_DEFUN([DPKG_COMPILER_WARNINGS],
 [AC_ARG_ENABLE(compiler-warnings,
 [AC_ARG_ENABLE(compiler-warnings,
 	AS_HELP_STRING([--enable-compiler-warnings],
 	AS_HELP_STRING([--enable-compiler-warnings],
 	               [Enable additional compiler warnings]),
 	               [Enable additional compiler warnings]),
-[WFLAGS="-Wall -Werror"
+[WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers"
 if test "x$enable_compiler_warnings" = "xyes"; then
 if test "x$enable_compiler_warnings" = "xyes"; then
 	if test "x$GCC" = "xyes"; then
 	if test "x$GCC" = "xyes"; then
 		CFLAGS="$WFLAGS $CFLAGS"
 		CFLAGS="$WFLAGS $CFLAGS"