server-skynet-source-3rd-je.../test/integration
gnzlbg 3d29d11ac2 Clean compilation -Wextra
Before this commit jemalloc produced many warnings when compiled with -Wextra
with both Clang and GCC. This commit fixes the issues raised by these warnings
or suppresses them if they were spurious at least for the Clang and GCC
versions covered by CI.

This commit:

* adds `JEMALLOC_DIAGNOSTIC` macros: `JEMALLOC_DIAGNOSTIC_{PUSH,POP}` are
  used to modify the stack of enabled diagnostics. The
  `JEMALLOC_DIAGNOSTIC_IGNORE_...` macros are used to ignore a concrete
  diagnostic.

* adds `JEMALLOC_FALLTHROUGH` macro to explicitly state that falling
  through `case` labels in a `switch` statement is intended

* Removes all UNUSED annotations on function parameters. The warning
  -Wunused-parameter is now disabled globally in
  `jemalloc_internal_macros.h` for all translation units that include
  that header. It is never re-enabled since that header cannot be
  included by users.

* locally suppresses some -Wextra diagnostics:

  * `-Wmissing-field-initializer` is buggy in older Clang and GCC versions,
    where it does not understanding that, in C, `= {0}` is a common C idiom
    to initialize a struct to zero

  * `-Wtype-bounds` is suppressed in a particular situation where a generic
    macro, used in multiple different places, compares an unsigned integer for
    smaller than zero, which is always true.

  * `-Walloc-larger-than-size=` diagnostics warn when an allocation function is
    called with a size that is too large (out-of-range). These are suppressed in
    the parts of the tests where `jemalloc` explicitly does this to test that the
    allocation functions fail properly.

* adds a new CI build bot that runs the log unit test on CI.

Closes #1196 .
2018-07-09 21:40:42 -07:00
..
cpp Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
aligned_alloc.c Clean compilation -Wextra 2018-07-09 21:40:42 -07:00
allocated.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
extent.c Allow setting extent hooks on uninitialized auto arenas. 2018-04-11 21:21:54 -07:00
extent.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
MALLOCX_ARENA.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
mallocx.c Clean compilation -Wextra 2018-07-09 21:40:42 -07:00
mallocx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
overflow.c Clean compilation -Wextra 2018-07-09 21:40:42 -07:00
posix_memalign.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
rallocx.c Clean compilation -Wextra 2018-07-09 21:40:42 -07:00
sdallocx.c Only run test/integration/sdallocx non-reentrantly. 2017-07-24 16:21:24 -07:00
thread_arena.c Implement per-CPU arena. 2017-03-08 23:19:01 -08:00
thread_tcache_enabled.c Remove unused code in test/thread_tcache_enabled. 2018-03-02 14:44:21 -08:00
xallocx.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
xallocx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00