mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-05 01:46:16 +03:00
Enable a few additional warnings for CI and fix the issues they uncovered
- `-Wmissing-prototypes` and `-Wmissing-variable-declarations` are helpful for finding dead code and/or things that should be `static` but aren't marked as such. - `-Wunused-macros` is of similar utility, but for identifying dead macros. - `-Wunreachable-code` and `-Wunreachable-code-aggressive` do exactly what they say: flag unreachable code.
This commit is contained in:
parent
d2c9ed3d1e
commit
da66aa391f
11 changed files with 15 additions and 40 deletions
|
|
@ -21,7 +21,7 @@
|
|||
#else
|
||||
#define PAGES_FD_TAG -1
|
||||
#endif
|
||||
#ifdef JEMALLOC_HAVE_PRCTL
|
||||
#if defined(JEMALLOC_HAVE_PRCTL) && defined(JEMALLOC_PAGEID)
|
||||
#include <sys/prctl.h>
|
||||
#ifndef PR_SET_VMA
|
||||
#define PR_SET_VMA 0x53564d41
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue