From d2ce613684f837c873a0905f851d12d9d8952fc6 Mon Sep 17 00:00:00 2001 From: Randy MacLeod Date: Tue, 30 Apr 2013 23:15:57 -0400 Subject: libsemanage: drop flag: -Wno-unused-but-set-variable The flag: -Wno-unused-but-set-variable isn't supported on older versions of gcc such as gcc-4.1.2 which is the native compiler for RHEL-5.9. Drop this warning flag for both the native and target builds. Signed-off-by: Randy MacLeod Signed-off-by: Xin Ouyang --- .../libsemanage-drop-Wno-unused-but-set-variable.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch (limited to 'recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch') diff --git a/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch b/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch new file mode 100644 index 0000000..faf8fc5 --- /dev/null +++ b/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch @@ -0,0 +1,17 @@ +Subject: libselinux: drop flag: -Wno-unused-but-set-variable + +Upstream status: inappropriate (older compilers only). + +Signed-off-by: Randy MacLeod + +--- libsemanage-2.1.9.orig/src/Makefile ++++ libsemanage-2.1.9/src/Makefile +@@ -57,7 +57,7 @@ + LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo + CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute + +-SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \ ++SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-shadow \ + -Wno-unused-parameter + + override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -- cgit v1.2.3-54-g00ecf