warnings: add some clang-14 warnings

This commit is contained in:
Danny Robson 2022-05-03 09:55:29 +10:00
parent 29b2a1539e
commit b09ea14d5a

View File

@ -96,6 +96,12 @@ append_compile_flag(-Wstring-concatenation)
append_compile_flag(-Wtautological-unsigned-char-zero-compare) append_compile_flag(-Wtautological-unsigned-char-zero-compare)
append_compile_flag(-Wtautological-value-range-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 # Required extensions
#AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror]) #AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])