Skip to content

Commit f8a5501

Browse files
committed
Silence SQLite compiler warnings.
GitOrigin-RevId: 4883d29102526dcd426fedf12db330b532dbea70
1 parent 9cf8aed commit f8a5501

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sqlite/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ if (GCC OR CLANG)
4444
if (CLANG)
4545
target_compile_options(tdsqlite PRIVATE -Wno-parentheses-equality -Wno-unused-value)
4646
endif()
47+
if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0))
48+
target_compile_options(tdsqlite PRIVATE -Wno-return-local-addr -Wno-stringop-overflow)
49+
endif()
4750
elseif (MSVC)
4851
target_compile_options(tdsqlite PRIVATE /wd4996)
4952
endif()

0 commit comments

Comments
 (0)