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 291b88b235395b6c9a15b6d0ab0532f9ed47f27b..d075b31c55b6aa7e590d1df285aedda4c008186f 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 81c36b3f6638cd36b348e314f0eed7b512025b3c..63a0c9a822000e0b36e92c7ab9c270f94a760b79 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