opnsense-src/contrib/jemalloc/src
Ryan Libby 79457a8ad1 jemalloc: pick from upstream: Fix GCC-9.1 warning with macro GET_ARG_NUMERIC
Pick 2d6d099fed05b1509e81e54458516528bfbbf38d from upstream jemalloc:

    Fix GCC-9.1 warning with macro GET_ARG_NUMERIC

    GCC-9.1 reports following error when trying to compile file
    src/malloc_io.c and with CFLAGS='-Werror' :

    src/malloc_io.c: In function ‘malloc_vsnprintf’:
    src/malloc_io.c:369:2: error: case label value exceeds maximum value for type [-Werror]
      369 |  case '?' | 0x80:      \
          |  ^~~~
    src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’
      581 |     GET_ARG_NUMERIC(val, 'p');
          |     ^~~~~~~~~~~~~~~
    ...
    <snip>
    cc1: all warnings being treated as errors
    make: *** [Makefile:388: src/malloc_io.sym.o] Error 1

    The warning is reported as by default the type 'char' is 'signed char'
    and or-ing 0x80 will turn the case label char negative which will be
    beyond the printable ascii range (0 - 127).

    The patch fixes this by explicitly casting the 'len' variable as
    unsigned char' inside the 'switch' statement so that value of
    expression " '?' | 0x80 " falls within the legal values of the
    variable 'len'.

Discussed with:	jasone (maintainer)
Sponsored by:	Dell EMC Isilon
2019-12-21 02:44:38 +00:00
..
arena.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
background_thread.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
base.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
bin.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
bitmap.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
ckh.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
ctl.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
div.c Update jemalloc to version 5.1.0. 2018-05-11 00:32:31 +00:00
extent.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
extent_dss.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
extent_mmap.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
hash.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
hooks.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
jemalloc.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
large.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
log.c Update jemalloc to version 5.1.0. 2018-05-11 00:32:31 +00:00
malloc_io.c jemalloc: pick from upstream: Fix GCC-9.1 warning with macro GET_ARG_NUMERIC 2019-12-21 02:44:38 +00:00
mutex.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
mutex_pool.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
nstime.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
pages.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
prng.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
prof.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
rtree.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
stats.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
sz.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
tcache.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
ticker.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00
tsd.c Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
witness.c Update jemalloc to 5.0.0. 2017-06-15 07:15:05 +00:00