libsemanage: ignore missing prototypes in swig generated code
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 <jwcart2@gmail.com> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
8c1159363a
commit
0ba7e23189
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue