From 1ad8781f1ddd96fbe6ebc244f2a064d96a0d436e Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Tue, 26 Aug 2014 12:33:00 +0000 Subject: [ASan/Win] Disable warning C4391: incorrect return type for intrinsic function This warning makes it a bit hard to define strlen and wcslen interceptors in an elegant yet portable way git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@216450 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake') diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index ee9a7bf60..8035f7eb5 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -39,6 +39,7 @@ check_cxx_compiler_flag("-Werror -Wno-variadic-macros" COMPILER_RT_HAS_WNO_VA check_cxx_compiler_flag(/W3 COMPILER_RT_HAS_W3_FLAG) check_cxx_compiler_flag(/WX COMPILER_RT_HAS_WX_FLAG) +check_cxx_compiler_flag(/wd4391 COMPILER_RT_HAS_WD4391_FLAG) check_cxx_compiler_flag(/wd4722 COMPILER_RT_HAS_WD4722_FLAG) # Symbols. -- cgit v1.2.3