summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MapInfoCreateMemoryTest.cpp
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-12-11 19:05:02 -0800
committerYi Kong <yikong@google.com>2018-12-11 23:08:32 -0800
commite9ce7aa8abe48068e825e8c1712d0dd9f36da247 (patch)
tree6a4e9f0f9afb890d770745bc3238015e2ba266cc /libunwindstack/tests/MapInfoCreateMemoryTest.cpp
parentbb81135fdad5f06240d795b21e025cf3d1626d03 (diff)
Ignore null-pointer-arithmetic warning from dlmalloc include
system/core/libpixelflinger/codeflinger/../../../../external/dlmalloc/malloc.c:4286:61: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Werror,-Wnull-pointer-arithmetic] if (!is_inuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) { ^~~~~~~~~~~~~ system/core/libpixelflinger/codeflinger/../../../../external/dlmalloc/malloc.c:2731:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ system/core/libpixelflinger/codeflinger/../../../../external/dlmalloc/malloc.c:2218:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ system/core/libpixelflinger/codeflinger/../../../../external/dlmalloc/malloc.c:1622:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ Test: m checkbuild Bug: 72331524 Change-Id: Iefc3b4ae6b36ba9f6cb908c03301cbe429ade320
Diffstat (limited to 'libunwindstack/tests/MapInfoCreateMemoryTest.cpp')
0 files changed, 0 insertions, 0 deletions