Skip to content

Commit d8e76bb

Browse files
committed
[mono] use -Werror=shorten-64-to-32 and -Werror=implicit-int-conversion
Follow-up to dotnet#69236 Related to dotnet#70026
1 parent adcceba commit d8e76bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mono/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ if(GCC)
507507

508508
if (CMAKE_C_COMPILER_ID MATCHES "Clang")
509509
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")
510+
append("-Werror=shorten-64-to-32 -Werror=implicit-int-conversion" WERROR)
510511
endif()
511512

512513
check_c_compiler_flag("-Werror=incompatible-pointer-types" WERROR_INCOMPATIBLE_POINTER_TYPES)

0 commit comments

Comments
 (0)