Blame SOURCES/0081-libsepol-declare-file-local-variable-static.patch

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