mirror of
https://github.com/TokTok/c-toxcore
synced 2026-05-26 22:44:56 +00:00
cleanup: Use _Static_assert in gcc/clang.
Hopefully they don't throw warnings at us.
This commit is contained in:
@@ -20,6 +20,11 @@ add_ld_flag -undefined error
|
||||
# Make compilation error on a warning
|
||||
add_flag -Werror
|
||||
|
||||
# Allow _Static_assert. Supported C11 extensions are fine, since we have several
|
||||
# C99-only compilers we test against anyway. Anything that passes all the
|
||||
# compilers we use is fine.
|
||||
add_c_flag -Wno-c11-extensions
|
||||
|
||||
cmake -B_build -H. \
|
||||
-DCMAKE_C_FLAGS="$C_FLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CXX_FLAGS" \
|
||||
|
||||
Reference in New Issue
Block a user