From 0ba7e23189b8c195ed9856285ba983212b40cc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 5 Apr 2022 15:35:47 +0200 Subject: [PATCH] libsemanage: ignore missing prototypes in swig generated code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code generated by swig triggers the following warning: semanageswig_wrap.c:2759:24: warning: no previous prototype for ‘PyInit__semanage’ [-Wmissing-prototypes] 2759 | # define SWIG_init PyInit__semanage | ^~~~~~~~~~~~~~~~ semanageswig_wrap.c:17772:1: note: in expansion of macro ‘SWIG_init’ 17772 | SWIG_init(void) { | ^~~~~~~~~ Ignore -Wmissing-prototypes for swig generated source files. Acked-by: James Carter Signed-off-by: Christian Göttsche --- libsemanage/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsemanage/src/Makefile b/libsemanage/src/Makefile index ab6cae51..71c2a1d2 100644 --- a/libsemanage/src/Makefile +++ b/libsemanage/src/Makefile @@ -57,7 +57,7 @@ CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format- -fno-semantic-interposition SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \ - -Wno-unused-parameter + -Wno-unused-parameter -Wno-missing-prototypes override CFLAGS += -I../include -D_GNU_SOURCE RANLIB ?= ranlib