Browse Source

cache sync: suppress GCC C90/C99 int literal warning

warning: this decimal constant is unsigned only in ISO C90

Raised by GCC 4.9.2 on PowerPC.

The warning is bogus here due to the immediate explicit cast; newer
versions don't emit it.
Marian Beermann 8 years ago
parent
commit
78cbf695c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/cache_sync/unpack.h

+ 1 - 1
src/borg/cache_sync/unpack.h

@@ -26,7 +26,7 @@
 #include "unpack_define.h"
 #include "unpack_define.h"
 
 
 // 2**32 - 1025
 // 2**32 - 1025
-#define _MAX_VALUE ( (uint32_t) 4294966271 )
+#define _MAX_VALUE ( (uint32_t) 4294966271UL )
 
 
 #define MIN(x, y) ((x) < (y) ? (x): (y))
 #define MIN(x, y) ((x) < (y) ? (x): (y))