# HG changeset patch # User michael # Date 1038049283 0 # Node ID 97e8dfe61ab1d3104d7fbf6279b10bea7da4c62d # Parent 772d6d27fd66219cdc1e4e32376f2eb77ac1bf36 check for -Wall support & use it if available patch by (Dominik Mierzejewski ) arpi, feel free to reverse if u dont like -Wall diff -r 772d6d27fd66 -r 97e8dfe61ab1 Gui/Makefile --- a/Gui/Makefile Sat Nov 23 10:58:14 2002 +0000 +++ b/Gui/Makefile Sat Nov 23 11:01:23 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 -Wall + -fexpensive-optimizations -fschedule-insns2 ifeq ($(TARGET_ARCH_X86),yes) OPTIMIZE += -malign-double endif diff -r 772d6d27fd66 -r 97e8dfe61ab1 configure --- a/configure Sat Nov 23 10:58:14 2002 +0000 +++ b/configure Sat Nov 23 11:01:23 2002 +0000 @@ -2164,6 +2164,19 @@ 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 # @@ -4390,9 +4403,9 @@ _stripbinaries=no elif test -z "$CFLAGS" ; then if test "$host_arch" != "mips" ; then - CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" + CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall" else - CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer" + CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall" fi # always compile with '-g' if .developer: if test -f ".developer" ; then diff -r 772d6d27fd66 -r 97e8dfe61ab1 libaf/Makefile --- a/libaf/Makefile Sat Nov 23 10:58:14 2002 +0000 +++ b/libaf/Makefile Sat Nov 23 11:01:23 2002 +0000 @@ -6,7 +6,7 @@ OBJS=$(SRCS:.c=.o) -CFLAGS = $(OPTFLAGS) -I. -Wall +CFLAGS = $(OPTFLAGS) -I. .SUFFIXES: .c .o .c.o: