mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Config: Warn on void * pointer arithmetic.
This is handy while developing, but not portable.
This commit is contained in:
parent
22657a5e65
commit
b428dceeaf
1 changed files with 1 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ if test "x$GCC" = "xyes" ; then
|
|||
JE_CFLAGS_ADD([-Wsign-compare])
|
||||
JE_CFLAGS_ADD([-Wundef])
|
||||
JE_CFLAGS_ADD([-Wno-format-zero-length])
|
||||
JE_CFLAGS_ADD([-Wpointer-arith])
|
||||
dnl This warning triggers on the use of the universal zero initializer, which
|
||||
dnl is a very handy idiom for things like the tcache static initializer (which
|
||||
dnl has lots of nested structs). See the discussion at.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue