Skip to content

Commit

Permalink
Silence SQLite compiler warnings.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 4883d29102526dcd426fedf12db330b532dbea70
  • Loading branch information
levlam committed May 17, 2020
1 parent 9cf8aed commit f8a5501
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ if (GCC OR CLANG)
if (CLANG)
target_compile_options(tdsqlite PRIVATE -Wno-parentheses-equality -Wno-unused-value)
endif()
if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0))
target_compile_options(tdsqlite PRIVATE -Wno-return-local-addr -Wno-stringop-overflow)
endif()
elseif (MSVC)
target_compile_options(tdsqlite PRIVATE /wd4996)
endif()
Expand Down

0 comments on commit f8a5501

Please sign in to comment.