summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
diff options
context:
space:
mode:
authorRandy MacLeod <Randy.MacLeod@windriver.com>2013-04-30 23:15:57 -0400
committerXin Ouyang <Xin.Ouyang@windriver.com>2013-05-01 11:44:48 +0800
commitd2ce613684f837c873a0905f851d12d9d8952fc6 (patch)
treed1e6a0d4b2c5d37df4bc575e695ca476f430c88a /recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
parent41a695541670036ce69f3d9defedb20c5b4116b3 (diff)
downloadmeta-selinux-d2ce613684f837c873a0905f851d12d9d8952fc6.tar.gz
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 <Randy.MacLeod@windriver.com> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Diffstat (limited to 'recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch')
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch17
1 files changed, 17 insertions, 0 deletions
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 @@
1Subject: libselinux: drop flag: -Wno-unused-but-set-variable
2
3Upstream status: inappropriate (older compilers only).
4
5Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
6
7--- libsemanage-2.1.9.orig/src/Makefile
8+++ libsemanage-2.1.9/src/Makefile
9@@ -57,7 +57,7 @@
10 LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo
11 CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format-attribute
12
13-SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \
14+SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-shadow \
15 -Wno-unused-parameter
16
17 override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE