# HG changeset patch # User rathann # Date 1038190767 0 # Node ID 226e6866212d188079b7027b68edd2a7626f1bfd # Parent b1c5460a81052a5ba34e7a126c83f63431e1eb82 reversing my patch to check for -Wall support & use it if available (requested by A'rpi) diff -r b1c5460a8105 -r 226e6866212d Gui/Makefile --- a/Gui/Makefile Sun Nov 24 23:13:15 2002 +0000 +++ b/Gui/Makefile Mon Nov 25 02:19:27 2002 +0000 @@ -7,7 +7,7 @@ INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC) OPTIMIZE = $(OPTFLAGS) -fomit-frame-pointer \ - -fexpensive-optimizations -fschedule-insns2 + -fexpensive-optimizations -fschedule-insns2 -Wall ifeq ($(TARGET_ARCH_X86),yes) OPTIMIZE += -malign-double endif diff -r b1c5460a8105 -r 226e6866212d configure --- a/configure Sun Nov 24 23:13:15 2002 +0000 +++ b/configure Mon Nov 25 02:19:27 2002 +0000 @@ -2164,19 +2164,6 @@ fi echores "$_sys_sysinfo" -echocheck "-Wall option" -cat > $TMPC << EOF -int main(void) { return 0; } -EOF -_wall=no -cc_check -Wall && _wall=yes -if test "$_wall" = yes ; then - _ld_wall='-Wall' -else - _ld_wall='' -fi -echores "$_wall" - ######### # VIDEO # @@ -4403,9 +4390,9 @@ _stripbinaries=no elif test -z "$CFLAGS" ; then if test "$host_arch" != "mips" ; then - CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall" + CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" else - CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall" + CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" fi # always compile with '-g' if .developer: if test -f ".developer" ; then diff -r b1c5460a8105 -r 226e6866212d libaf/Makefile --- a/libaf/Makefile Sun Nov 24 23:13:15 2002 +0000 +++ b/libaf/Makefile Mon Nov 25 02:19:27 2002 +0000 @@ -6,7 +6,7 @@ OBJS=$(SRCS:.c=.o) -CFLAGS = $(OPTFLAGS) -I. +CFLAGS = $(OPTFLAGS) -I. -Wall .SUFFIXES: .c .o .c.o: