[clang-tools-extra] 9791416 - Silence a "logical operation on address of string constant" via CMake instead.
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 20 14:44:41 PDT 2020
Should the warning be disabled for LLVM overall, rather than only for
this subproject? (& be good tohave some details in the commit at least
of why this warning is being disabled - how it is noisy/unhelpful/etc)
On Sun, Jul 19, 2020 at 8:20 AM Aaron Ballman via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
>
> Author: Aaron Ballman
> Date: 2020-07-19T11:19:48-04:00
> New Revision: 97914164f8454e745219566d58479b5762cccd51
>
> URL: https://github.com/llvm/llvm-project/commit/97914164f8454e745219566d58479b5762cccd51
> DIFF: https://github.com/llvm/llvm-project/commit/97914164f8454e745219566d58479b5762cccd51.diff
>
> LOG: Silence a "logical operation on address of string constant" via CMake instead.
>
> Added:
>
>
> Modified:
> clang-tools-extra/clangd/CMakeLists.txt
>
> Removed:
>
>
>
> ################################################################################
> diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt
> index b3002b1d5698..8db6656e5291 100644
> --- a/clang-tools-extra/clangd/CMakeLists.txt
> +++ b/clang-tools-extra/clangd/CMakeLists.txt
> @@ -28,6 +28,10 @@ set(LLVM_LINK_COMPONENTS
> Option
> )
>
> +if(MSVC AND NOT CLANG_CL)
> + set_source_files_properties(CompileCommands.cpp PROPERTIES COMPILE_FLAGS -wd4130) # disables C4130: logical operation on address of string constant
> +endif()
> +
> add_clang_library(clangDaemon
> AST.cpp
> ClangdLSPServer.cpp
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list