From d8e76bb058a3df6442ce6f10a4bed79e4933a170 Mon Sep 17 00:00:00 2001 From: Aleksey Kliger Date: Tue, 31 May 2022 20:15:44 -0400 Subject: [PATCH] [mono] use -Werror=shorten-64-to-32 and -Werror=implicit-int-conversion Follow-up to https://github.com/dotnet/runtime/pull/69236 Related to https://github.com/dotnet/runtime/pull/70026 --- src/mono/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/CMakeLists.txt b/src/mono/CMakeLists.txt index f70e95a66a5157..a48cdf7cdf11f9 100644 --- a/src/mono/CMakeLists.txt +++ b/src/mono/CMakeLists.txt @@ -507,6 +507,7 @@ if(GCC) if (CMAKE_C_COMPILER_ID MATCHES "Clang") set(WARNINGS "${WARNINGS} -Qunused-arguments -Wno-tautological-compare -Wno-parentheses-equality -Wno-self-assign -Wno-return-stack-address -Wno-constant-logical-operand -Wno-zero-length-array -Wno-asm-operand-widths") + append("-Werror=shorten-64-to-32 -Werror=implicit-int-conversion" WERROR) endif() check_c_compiler_flag("-Werror=incompatible-pointer-types" WERROR_INCOMPATIBLE_POINTER_TYPES)