aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMake
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-08-08 19:38:51 +0300
committerlevlam <levlam@telegram.org>2024-08-08 19:38:51 +0300
commitc4f8f044827b279f8bfa536fc897a8d784b25614 (patch)
tree237a15ae6712dae0797ed53e3778c30815bfcfb1 /CMake
parent42d07bd074a48f990de123113edc9c14224e7af6 (diff)
Add clang warnings.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/TdSetUpCompiler.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake
index 5bf25775d..747d0aaa7 100644
--- a/CMake/TdSetUpCompiler.cmake
+++ b/CMake/TdSetUpCompiler.cmake
@@ -127,6 +127,8 @@ function(td_set_up_compiler)
add_cxx_compiler_flag("-Wodr")
add_cxx_compiler_flag("-flto-odr-type-merging")
add_cxx_compiler_flag("-Wno-psabi")
+ add_cxx_compiler_flag("-Wunused-member-function")
+ add_cxx_compiler_flag("-Wunused-private-field")
# add_cxx_compiler_flag("-Werror")