From 30ee09066316bd74f63b4504ec51c00dfa82998d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 24 Jun 2019 01:21:02 -0600 Subject: [PATCH] configure: No -Werror=return-type for clang due to remaining extern C linkage complaints. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e865b436b..14bc1c50d 100644 --- a/configure.ac +++ b/configure.ac @@ -631,7 +631,10 @@ dnl dnl Uninitialized return values are not useful in this project; forgetting dnl to return from a function is always a developer mistake here. -CHARYBDIS_C_GCC_TRY_FLAGS([-Werror=return-type], charybdis_cv_c_gcc_w_error_return_type) +AM_COND_IF([GCC], +[ + CHARYBDIS_C_GCC_TRY_FLAGS([-Werror=return-type], charybdis_cv_c_gcc_w_error_return_type) +]) dnl dnl List of warnings we suppress: