Skip to content

Commit fcd8751

Browse files
committed
Land #1046 - Fix -Wno-pointer-sign for C++
2 parents 583199b + 441cacf commit fcd8751

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ add_definitions(-D__END_HIDDEN_DECLS=)
131131
set(CMAKE_POSITION_INDEPENDENT_CODE true)
132132

133133
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
134-
add_definitions(-Wno-pointer-sign)
134+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign")
135135
endif()
136136

137137
if(WIN32)

0 commit comments

Comments
 (0)