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/20befb0af097
branches:  trunk
changeset: 975785:20befb0af097
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 04698e73ce5f -r 20befb0af097 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