Silence SQLite compiler warnings.

GitOrigin-RevId: 4883d29102526dcd426fedf12db330b532dbea70
This commit is contained in:
levlam 2020-05-17 04:57:46 +03:00
parent 9cf8aed326
commit f8a550124c

View File

@ -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()