diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 442e920..28cdfc8 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -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])