From c688cf9dbb0214c42ea85aa69a1bfc52cde67f88 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 14 May 2024 14:42:53 +1000 Subject: [PATCH] warnings: add GCC 14 warnings --- nc_warnings.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) 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])