From 99d45c850e3962e4c89839dd8531de1c080b3ee7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 20 Feb 2018 12:34:17 -0800 Subject: Fix problem with C99 inlines and -Werror=missing-prototypes Some older versions of gcc (gcc 4.2.1 at least) produce a warning, promoted to error, on C99 inlines. Do some work to figure out if we need to fall back to GNU inline syntax. Fix some issues with GNU inline syntax. Signed-off-by: H. Peter Anvin --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1f492103..7f1e1ce6 100644 --- a/configure.ac +++ b/configure.ac @@ -286,6 +286,13 @@ PA_ARG_ENABLED([werror], PA_ADD_CFLAGS([-Werror=vla])] ) +dnl +dnl On some versions of gcc, -Werror=missing-prototypes causes problems +dnl with C99-style external inlines. Test this *after* adding the -Werror +dnl options. +dnl +PA_CHECK_BAD_STDC_INLINE + dnl dnl support ccache dnl -- cgit v1.2.1