From 707e7ba41fefeeaf6f42abfc338edc60cf93b3bc Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 27 Jan 2022 12:26:33 +0200 Subject: [PATCH] ClangFormat: Suppress warnings from llvm Change-Id: Id79abc3ea87576a681d86a7c1bd3be957acc299f Reviewed-by: Cristian Adam --- src/plugins/clangformat/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/clangformat/CMakeLists.txt b/src/plugins/clangformat/CMakeLists.txt index 49eeb53e342..5cc3f6c85ea 100644 --- a/src/plugins/clangformat/CMakeLists.txt +++ b/src/plugins/clangformat/CMakeLists.txt @@ -15,6 +15,10 @@ add_qtc_plugin(ClangFormat clangformatutils.cpp clangformatutils.h ) +if(MSVC AND TARGET ClangFormat) + target_compile_options(ClangFormat PUBLIC /wd4267 /wd4624) +endif() + extend_qtc_plugin(ClangFormat CONDITION UNIX AND NOT APPLE PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,ALL"