From 8ddba5b2d16ccf1505eb332717b02f5c5793802f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20E=2E=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 19 Nov 2008 02:59:39 +0100 Subject: Enable basic warnings even when optimisations are disabled. We don't want to have warnings conditional to extreme optimisations: if the compiler supports them, they should be enabled. The reason why they were conditional is that the code testing for GCC presence enabled both warnings and optimisations, and the warnings were carried over when the optimisations were made optional. --- m4/optimizations.m4 | 8 -------- 1 file changed, 8 deletions(-) (limited to 'm4') diff --git a/m4/optimizations.m4 b/m4/optimizations.m4 index 88ad99890..405672cca 100644 --- a/m4/optimizations.m4 +++ b/m4/optimizations.m4 @@ -43,11 +43,6 @@ AC_DEFUN([AC_OPTIMIZATIONS], [ CC_CHECK_CFLAGS([-fbranch-probabilities], PASS2_CFLAGS="-fbranch-probabilities $PASS2_CFLAGS",) AC_SUBST(PASS1_CFLAGS) AC_SUBST(PASS2_CFLAGS) - dnl - dnl Warnings - dnl - CFLAGS="-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes $CFLAGS" - CFLAGS="-Wnested-externs -Wcast-align $CFLAGS" dnl some combinations of gcc+glibc produce useless warnings on memset dnl when compiling with -Wpointer-arith, so we check for this first AC_MSG_CHECKING(for sane -Wpointer-arith) @@ -68,9 +63,6 @@ AC_DEFUN([AC_OPTIMIZATIONS], [ test "$newGCC" = yes || INLINE_FUNCTIONS=-fno-inline-functions fi - dnl Flags not supported by all *cc* variants - CC_CHECK_CFLAGS([-Wall], wall="-Wall", wall="") - CFLAGS="$wall ${CFLAGS}" DEBUG_CFLAGS="$wall ${DEBUG_CFLAGS}" -- cgit v1.2.3