From 04ac7fa627c5f07d065340bb6f7b3137e4ede5c7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 27 Nov 2020 19:52:22 -0800 Subject: [PATCH] configure: -Wno-ignored-attributes in release mode for GCC. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 096a5424f..4036bf179 100644 --- a/configure.ac +++ b/configure.ac @@ -855,10 +855,16 @@ AM_COND_IF([DEBUG], CHARYBDIS_C_GCC_TRY_FLAGS([-Wmissing-noreturn], charybdis_cv_c_gcc_w_missing_noreturn) ], [ CHARYBDIS_C_GCC_TRY_FLAGS([-Wno-unknown-pragmas], charybdis_cv_c_gcc_w_unknown_pragmas) + AM_COND_IF([CLANG], [ CHARYBDIS_C_GCC_TRY_FLAGS([-Wno-unknown-attributes], charybdis_cv_c_gcc_w_unknown_attributes) ]) + + AM_COND_IF([GCC], + [ + CHARYBDIS_C_GCC_TRY_FLAGS([-Wno-ignored-attributes], charybdis_cv_c_gcc_w_ignored_attributes) + ]) ]) AM_COND_IF([UNTUNED],