From 733b86c02ac146fd73cdf26709e9b01c27c46796 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Fri, 20 Nov 2020 19:07:28 +0100 Subject: [PATCH] genprotimg: remove -Winline cflag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `-Winline` can cause problems with the cleanup functions defined by glib. Therefore let's remove the cflag for now. DEBUG: /usr/include/glib-2.0/glib/gmacros.h:1031:43: error: inlining failed in call to 'glib_autoptr_cleanup_STACK_OF_X509_CRL.isra.0': call is unlikely and \ code size would grow [-Werror=inline] DEBUG: 1031 | #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- genprotimg/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genprotimg/src/Makefile b/genprotimg/src/Makefile index 2da15da3..a47d0fe5 100644 --- a/genprotimg/src/Makefile +++ b/genprotimg/src/Makefile @@ -15,7 +15,7 @@ INCLUDE_PARMS = $(addprefix -I,$(INCLUDE_PATHS)) WARNINGS := -Wall -Wextra -Wshadow \ -Wcast-align -Wwrite-strings -Wmissing-prototypes \ - -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline \ + -Wmissing-declarations -Wredundant-decls -Wnested-externs \ -Wno-long-long -Wuninitialized -Wconversion -Wstrict-prototypes \ -Wpointer-arith -Werror \ $(NULL)