Skip to content

Commit

Permalink
Merge pull request #3518 from steemit/20190223-clang-8-shadow-0-22-x
Browse files Browse the repository at this point in the history
Disable strict warnings introduced with Clang 8 (0.22.x)
  • Loading branch information
Michael Vandeberg authored Sep 25, 2019
2 parents 53392cc + 13ab708 commit ca3c534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/vendor/rocksdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ if(FAIL_ON_WARNINGS)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
else() # assume GCC
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=defaulted-function-deleted")
endif()
endif()
endif()

Expand Down

0 comments on commit ca3c534

Please sign in to comment.