warnings: add GCC 14 warnings

This commit is contained in:
Danny Robson 2024-05-14 14:42:53 +10:00
parent f269ef3f4f
commit c688cf9dbb

View File

@ -104,6 +104,14 @@ append_compile_flag(-Wbitwise-instead-of-logical)
append_compile_flag(-Wunaligned-access)
append_compile_flag(-Wunreachable-code-fallthrough)
# gcc 13
append_compile_flag(-Wdangling-reference)
# gcc 14
append_compile_flag(-Welaborated-enum-base)
#append_compile_flag(-Wnrvo)
append_compile_flag(-Walloc-size)
# -------------------------------------------------------------------------
# Required extensions
#AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])