From: Roy Marples Date: Fri, 11 May 2007 11:00:14 +0000 (+0000) Subject: Fix Makefile gcc options X-Git-Tag: v3.2.3~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ac22c3cbee807f37754dae40308217e81e1c0f;p=thirdparty%2Fdhcpcd.git Fix Makefile gcc options --- diff --git a/Makefile b/Makefile index ed783ca9..b5c2e744 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ # Luckily we can do this more long winded thing with pmake used by the BSDs # FIXME: Look into making this into a loop -WAFTST != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ +WAFTST != if $(CC) -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ then echo "-Wdeclaration-after-statement"; fi -WSEQ != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ +WSEQ != if $(CC) -Wsequence-point -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ then echo "-Wsequence-point"; fi WEXTRA != if $(CC) -Wextra -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ then echo "-Wextra"; fi