From: Jim Meyering Date: Mon, 11 Jan 2010 15:50:02 +0000 (+0100) Subject: utimecmp: avoid new warning from upcoming gcc-4.5.0 X-Git-Tag: v0.1~4760 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=56a9c0c14e067f5375863981337056a31e45c8f0;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 291b88b23..d075b31c5 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 81c36b3f6..63a0c9a82 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