Building from the root directory with "make DEBUG=1" enables -Wshadow option. This makes the compilation fail with the following error: semodule_unpackage.c: In function 'usage': semodule_unpackage.c:17:25: error: declaration of 'progname' shadows a global declaration [-Werror=shadow] static void usage(char *progname) ^ semodule_unpackage.c:14:7: error: shadowed declaration is here [-Werror=shadow] char *progname = NULL; ^ Fix this error by no longer passing a global variable as a parameter to usage function. --- policycoreutils/semodule_package/semodule_unpackage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policycoreutils/semodule_package/semodule_unpackage.c b/policycoreutils/semodule_package/semodule_unpackage.c index 0120ee433339..07893f146258 100644 --- a/policycoreutils/semodule_package/semodule_unpackage.c +++ b/policycoreutils/semodule_package/semodule_unpackage.c @@ -14,7 +14,7 @@ char *progname = NULL; extern char *optarg; -static void usage(char *progname) +static void usage(void) { printf("usage: %s ppfile modfile [fcfile]\n", progname); exit(1); @@ -49,7 +49,7 @@ int main(int argc, char **argv) progname = argv[0]; if (argc < 3) { - usage(progname); + usage(); exit(1); } -- 2.1.0 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.