Skip to content

Commit

Permalink
ARROW-2668: [C++] Suppress -Wnull-pointer-arithmetic when compiling p…
Browse files Browse the repository at this point in the history
…lasma/malloc.cc on clang

This generates a warning on clang-6 when using CHECKIN error level, so compiling with `-Werror` will fail without it.

Author: Wes McKinney <[email protected]>

Closes apache#2099 from wesm/ARROW-2668 and squashes the following commits:

13d7670 <Wes McKinney> Suppress -Wnull-pointer-arithmetic when compiling plasma/malloc.cc on clang
  • Loading branch information
wesm authored and xhochy committed Jun 3, 2018
1 parent 79a2207 commit 3960db9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/plasma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ if ("${COMPILER_FAMILY}" STREQUAL "clang")
APPEND_STRING
PROPERTY COMPILE_FLAGS
" -Wno-parentheses-equality \
-Wno-null-pointer-arithmetic \
-Wno-shorten-64-to-32 \
-Wno-unused-macros")

Expand Down

0 comments on commit 3960db9

Please sign in to comment.