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])