utimecmp: avoid new warning from upcoming gcc-4.5.0
authorJim Meyering <meyering@redhat.com>
Mon, 11 Jan 2010 15:50:02 +0000 (16:50 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 11 Jan 2010 15:50:02 +0000 (16:50 +0100)
* lib/utimecmp.c (BILLION): Define using #define rather than an
anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.

ChangeLog
lib/utimecmp.c

index 291b88b..d075b31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-11  Jim Meyering  <meyering@redhat.com>
+
+       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  <ebb9@byu.net>
 
        math: add portability warnings for classification macros
index 81c36b3..63a0c9a 100644 (file)
@@ -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