From b09ea14d5adf50ad42e06c5e2a2837d9d84abb1a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 3 May 2022 09:55:29 +1000 Subject: [PATCH] warnings: add some clang-14 warnings --- nc_warnings.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nc_warnings.cmake b/nc_warnings.cmake index aabde0c..ebb9908 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -96,6 +96,12 @@ append_compile_flag(-Wstring-concatenation) append_compile_flag(-Wtautological-unsigned-char-zero-compare) append_compile_flag(-Wtautological-value-range-compare) +# clang 14 +append_compile_flag(-Wbitwise-instead-of-logical) +append_compile_flag(-Wunaligned-access) +append_compile_flag(-Wunreachable-code-fallthrough) + + # ------------------------------------------------------------------------- # Required extensions #AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])