From: Jim Meyering Date: Sun, 17 May 2009 13:22:11 +0000 (+0200) Subject: build: avoid new "make distcheck" failure with gcc 4.5.0 20090517 X-Git-Tag: v7.5~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=564622fbeab39ff9532657a2bff61be542bf0227;p=thirdparty%2Fcoreutils.git build: avoid new "make distcheck" failure with gcc 4.5.0 20090517 * dist-check.mk (warn_cflags): Add -Wno-enum-compare. --- diff --git a/dist-check.mk b/dist-check.mk index 16f38590b6..9a32d17d77 100644 --- a/dist-check.mk +++ b/dist-check.mk @@ -1,6 +1,12 @@ # Most of this is probably too coreutils-centric to be useful to other packages. warn_cflags = -Dlint -O -Werror -Wall -Wformat -Wshadow -Wpointer-arith + +# anonymous 'enum's are too useful to forbid. Without this, we'd get: +# utimecmp.c:193: error: comparison between 'enum ' and \ +# 'enum ' when using gcc-4.5.0-20090517. +warn_cflags += -Wno-enum-compare + bin=bin-$$$$ write_loser = printf '\#!%s\necho $$0: bad path 1>&2; exit 1\n' '$(SHELL)'