Skip to content

Commit

Permalink
Disable implicit fallthrough warning when building internal sqlite3 (#…
Browse files Browse the repository at this point in the history
…215)

-Wimplicit-fallthrough is available in gcc 7.0 and greater.
  • Loading branch information
richardhozak authored and SRombauts committed Aug 14, 2019
1 parent c1ab707 commit ce4eb18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqlite3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ add_library(sqlite3
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))

if (UNIX AND CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
target_compile_options(sqlite3 PRIVATE "-Wimplicit-fallthrough=0")
endif()

0 comments on commit ce4eb18

Please sign in to comment.