Skip to content

Commit

Permalink
[mono] use -Werror=shorten-64-to-32 and -Werror=implicit-int-conversion
Browse files Browse the repository at this point in the history
Follow-up to dotnet#69236

Related to dotnet#70026
  • Loading branch information
lambdageek committed Jun 1, 2022
1 parent adcceba commit d8e76bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d8e76bb

Please sign in to comment.