diff --git a/sqlite/CMakeLists.txt b/sqlite/CMakeLists.txt index c8968576e..8ca0aee5a 100644 --- a/sqlite/CMakeLists.txt +++ b/sqlite/CMakeLists.txt @@ -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()