Skip to content

Commit

Permalink
cmake: fix clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Feb 6, 2025
1 parent aaccb4c commit a0b3e21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ else()
)

if(CMAKE_C_COMPILER_ID MATCHES "Clang")
list(APPEND c_flags -Watomic-implicit-seq-cst -Wshorten-64-to-32)
list(APPEND c_flags
-Watomic-implicit-seq-cst
-Wshorten-64-to-32
-Wno-gnu-zero-variadic-macro-arguments
-Wno-c2x-extensions
)

endif()

add_compile_options(
Expand Down

0 comments on commit a0b3e21

Please sign in to comment.