Skip to content

Commit

Permalink
Suppress integer conversion warnings inside protobuf source
Browse files Browse the repository at this point in the history
  • Loading branch information
Qartar committed Aug 1, 2016
1 parent 625fbbe commit 3b9d37a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions depends/protobuf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ LIST(APPEND LIBPROTOBUF_FULL_SRCS ${LIBPROTOBUF_LITE_SRCS})
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -Wno-sign-compare")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-result")
ELSEIF(MSVC)
# Disable warnings for integer conversion to smaller type
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267")
ENDIF()

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
Expand Down

0 comments on commit 3b9d37a

Please sign in to comment.