Do not use -WEverything for clang

This commit is contained in:
2025-05-02 00:15:07 +03:00
parent 466aac142c
commit 3baa45c32e

View File

@@ -58,8 +58,8 @@ add_library(hiload SHARED
# TODO: Get -Wpadded back by refactoring sc_array or just surround # TODO: Get -Wpadded back by refactoring sc_array or just surround
# all type sc_array declarations with the ignore pragma # all type sc_array declarations with the ignore pragma
target_compile_options(hiload PRIVATE target_compile_options(hiload PRIVATE
$<$<C_COMPILER_ID:GNU>:-Wall -Wextra> $<$<C_COMPILER_ID:GNU>:-Wall -Wextra -Wpedantic>
$<$<C_COMPILER_ID:Clang>:-Weverything> $<$<C_COMPILER_ID:Clang>:-Wall -Wextra -Wpedantic>
$<$<COMPILE_LANGUAGE:C>:-Wno-declaration-after-statement -Wno-padded> $<$<COMPILE_LANGUAGE:C>:-Wno-declaration-after-statement -Wno-padded>
) )