diff options
| author | levlam <levlam@telegram.org> | 2020-05-17 04:57:46 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2020-05-17 04:57:46 +0300 |
| commit | f8a550124c084b9c83c5ee3bcda57761381f7d98 (patch) | |
| tree | e0a0faf9ad74e27ef9de946178e10c9ce2657e8a /sqlite | |
| parent | 9cf8aed326d8e31e9ef12667ce67adda10c1df03 (diff) | |
Silence SQLite compiler warnings.
GitOrigin-RevId: 4883d29102526dcd426fedf12db330b532dbea70
Diffstat (limited to 'sqlite')
| -rw-r--r-- | sqlite/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
