Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/dist/src Appease gcc-9
details: https://anonhg.NetBSD.org/src/rev/ce56430b32b2
branches: trunk
changeset: 943573:ce56430b32b2
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 06 16:30:41 2020 +0000
description:
Appease gcc-9
diffstat:
external/bsd/jemalloc/dist/src/malloc_io.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r fe2c602afd3b -r ce56430b32b2 external/bsd/jemalloc/dist/src/malloc_io.c
--- a/external/bsd/jemalloc/dist/src/malloc_io.c Sun Sep 06 15:27:22 2020 +0000
+++ b/external/bsd/jemalloc/dist/src/malloc_io.c Sun Sep 06 16:30:41 2020 +0000
@@ -362,29 +362,29 @@
} \
} while (0)
#define GET_ARG_NUMERIC(val, len) do { \
- switch (len) { \
+ switch ((unsigned int)len) { \
case '?': \
val = va_arg(ap, int); \
break; \
- case '?' | 0x80: \
+ case '?' | 0x80U: \
val = va_arg(ap, unsigned int); \
break; \
case 'l': \
val = va_arg(ap, long); \
break; \
- case 'l' | 0x80: \
+ case 'l' | 0x80U: \
val = va_arg(ap, unsigned long); \
break; \
case 'q': \
val = va_arg(ap, long long); \
break; \
- case 'q' | 0x80: \
+ case 'q' | 0x80U: \
val = va_arg(ap, unsigned long long); \
break; \
case 'j': \
val = va_arg(ap, intmax_t); \
break; \
- case 'j' | 0x80: \
+ case 'j' | 0x80U: \
val = va_arg(ap, uintmax_t); \
break; \
case 't': \
@@ -393,7 +393,7 @@
case 'z': \
val = va_arg(ap, ssize_t); \
break; \
- case 'z' | 0x80: \
+ case 'z' | 0x80U: \
val = va_arg(ap, size_t); \
break; \
case 'p': /* Synthetic; used for %p. */ \
Home |
Main Index |
Thread Index |
Old Index