# HG changeset patch # User Jim Meyering # Date 1263225002 -3600 # Node ID fd5b0bf2a8e9c37c3c7a15be908fad63db3adc86 # Parent d6da6e5f2f62f92302ca50ead73c89a6ec8f14f6 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 --- 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 --- 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