From 56a9c0c14e067f5375863981337056a31e45c8f0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 11 Jan 2010 16:50:02 +0100 Subject: [PATCH] utimecmp: avoid new warning from upcoming gcc-4.5.0 * lib/utimecmp.c (BILLION): Define using #define rather than an anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare. --- ChangeLog | 6 ++++++ lib/utimecmp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 291b88b235..d075b31c55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-11 Jim Meyering + + utimecmp: avoid new warning from upcoming gcc-4.5.0 + * lib/utimecmp.c (BILLION): Define using #define rather than an + anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare. + 2010-01-11 Eric Blake math: add portability warnings for classification macros diff --git a/lib/utimecmp.c b/lib/utimecmp.c index 81c36b3f66..63a0c9a822 100644 --- a/lib/utimecmp.c +++ b/lib/utimecmp.c @@ -39,7 +39,7 @@ # define MAX(a, b) ((a) > (b) ? (a) : (b)) #endif -enum { BILLION = 1000 * 1000 * 1000 }; +#define BILLION (1000 * 1000 * 1000) /* Best possible resolution that utimens can set and stat can return, due to system-call limitations. It must be a power of 10 that is -- 2.30.2