Skip to content

Commit

Permalink
cmake: move -Wshorten-64-to-32 to C-only
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Jan 7, 2025
1 parent 4940a43 commit 6622407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ endif()

if(CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(
-Wshorten-64-to-32
-Wno-gnu-zero-variadic-macro-arguments
-Wno-c2x-extensions
)
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wshorten-64-to-32>")
endif()

check_c_compiler_flag("-Watomic-implicit-seq-cst" COMPILER_SUPPORTS_WATOMIC)
Expand Down

0 comments on commit 6622407

Please sign in to comment.