Rebase on upstream commit 32611aea6543 See $ cd SELinuxProject/selinux $ git log --pretty=oneline libsepol-3.2..32611aea6543 -- libsepol
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
From 4572bf254a8242898467a41811c8e235209ebdfa Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
|
|
Date: Tue, 8 Jun 2021 17:59:11 +0200
|
|
Subject: [PATCH] libsepol: declare file local variable static
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Clang issues:
|
|
|
|
module_to_cil.c:65:7: warning: no previous extern declaration for non-static variable 'out_file' [-Wmissing-variable-declarations]
|
|
FILE *out_file;
|
|
^
|
|
|
|
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
|
|
Acked-by: James Carter <jwcart2@gmail.com>
|
|
---
|
|
libsepol/src/module_to_cil.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libsepol/src/module_to_cil.c b/libsepol/src/module_to_cil.c
|
|
index 580ba06a95b0..21d8e5dbcc39 100644
|
|
--- a/libsepol/src/module_to_cil.c
|
|
+++ b/libsepol/src/module_to_cil.c
|
|
@@ -62,7 +62,7 @@
|
|
# define UNUSED(x) UNUSED_ ## x
|
|
#endif
|
|
|
|
-FILE *out_file;
|
|
+static FILE *out_file;
|
|
|
|
#define STACK_SIZE 16
|
|
#define DEFAULT_LEVEL "systemlow"
|
|
--
|
|
2.32.0
|
|
|