summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libsemanage/libsemanage-drop-Wno-unused-but-set-variable.patch
blob: cf8815062aa78a1184fdede711cf449e00bf5212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 3f65789f172003c499f24f00d73a42867fccd277 Mon Sep 17 00:00:00 2001
From: Randy MacLeod <Randy.MacLeod@windriver.com>
Date: Tue, 30 Apr 2013 23:15:57 -0400
Subject: [PATCH] libselinux: drop flag: -Wno-unused-but-set-variable

Upstream status: inappropriate (older compilers only).

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>

---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index fdb178f..d457208 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -58,7 +58,7 @@ OBJS= $(patsubst %.c,%.o,$(SRCS)) conf-scan.o conf-parse.o
 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 -D_GNU_SOURCE