Skip to content

Commit

Permalink
libsepol: declare file local variable static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cgzones authored and jwcart2 committed Jun 24, 2021
1 parent 4fbc018 commit 4572bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsepol/src/module_to_cil.c
Expand Up @@ -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"
Expand Down

0 comments on commit 4572bf2

Please sign in to comment.