Skip to content

Commit

Permalink
[ci][SWIG] fixed SWIG -Wstrict-aliasing warnings (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed May 4, 2019
1 parent 7156c9b commit b40d0dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -117,6 +117,9 @@ endif(USE_HDFS)

if(UNIX OR MINGW OR CYGWIN)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -O3 -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas -Wno-return-type")
if(USE_SWIG)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
endif()
endif()

if(WIN32 AND MINGW)
Expand Down

0 comments on commit b40d0dc

Please sign in to comment.