summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-05-17 15:22:11 +0200
committerJim Meyering <meyering@redhat.com>2009-05-17 15:55:35 +0200
commit564622fbeab39ff9532657a2bff61be542bf0227 (patch)
treef60b221441a6e63445484a3f6b939015a04fdab7
parent2726826c720d9387f631c35e9c8401abd75a1087 (diff)
downloadcoreutils-564622fbeab39ff9532657a2bff61be542bf0227.tar.xz
build: avoid new "make distcheck" failure with gcc 4.5.0 20090517
* dist-check.mk (warn_cflags): Add -Wno-enum-compare.
-rw-r--r--dist-check.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/dist-check.mk b/dist-check.mk
index 16f38590b..9a32d17d7 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 <anonymous>' and \
+# 'enum <anonymous>' 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)'