diff options
| author | levlam <levlam@telegram.org> | 2023-07-29 17:12:58 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-07-29 17:12:58 +0300 |
| commit | 0298f5308140311cf3d12c9b104816f37692313b (patch) | |
| tree | 2210243b9130ce61a75e0f83e50ee916bafcc6d5 /CMake/TdSetUpCompiler.cmake | |
| parent | 564cbc0345935ae88d69c35c7c2bd0545fd83e0c (diff) | |
Disable maybe-uninitialized warnings also for old GCC versions.
Diffstat (limited to 'CMake/TdSetUpCompiler.cmake')
| -rw-r--r-- | CMake/TdSetUpCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index 80f05916b..76f3555e1 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -136,7 +136,7 @@ function(td_set_up_compiler) # add_cxx_compiler_flag("-Wzero-as-null-pointer-constant") endif() - if (GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)) + if (GCC) add_cxx_compiler_flag("-Wno-maybe-uninitialized") # too many false positives endif() if (WIN32 AND GCC AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)) |
