From 355c64072612596a8c8895da5509ec257d801a33 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 21 Nov 2019 14:57:40 +0000 Subject: Disable compiler errors for -Winline Being told that a `static inline` function was not inlined is not particularly useful as a way to detect bugs. Signed-off-by: Simon McVittie --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 2cd026f..8149579 100644 --- a/configure.ac +++ b/configure.ac @@ -133,6 +133,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS], [ \ -Wdeprecated-declarations \ -Wno-duplicated-branches \ + -Wno-inline \ -Wno-redundant-decls \ -Wno-switch-default \ -Wno-write-strings \ @@ -141,6 +142,7 @@ dnl AX_COMPILER_FLAGS doesn't order the compiler flags correctly to be able dnl to disable flags that it would normally enable WARN_CFLAGS="$(echo "${WARN_CFLAGS}" | ${SED} \ -e s/-Wduplicated-branches// \ + -e s/-Winline// \ -e s/-Wredundant-decls// \ -e s/-Wswitch-default// \ -e s/-Wwrite-strings// \ -- cgit v1.2.1