From c63598a4aa6992bcb8f5fd6b1f1a0883ad1c95fe Mon Sep 17 00:00:00 2001 From: John Johansen Date: Mon, 1 Jun 2020 03:00:11 -0700 Subject: [PATCH] binutils: drop unused var in aa_enabled.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleanup unused var warning aa_enabled.c: In function ‘exit_with_error’: aa_enabled.c:34:6: warning: unused variable ‘err’ [-Wunused-variable] int err; MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/561 Signed-off-by: John Johansen Acked-by: Steve Beattie --- binutils/aa_enabled.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/binutils/aa_enabled.c b/binutils/aa_enabled.c index 7636c9561..ecef8c9e4 100644 --- a/binutils/aa_enabled.c +++ b/binutils/aa_enabled.c @@ -31,8 +31,6 @@ void print_help(const char *command) /* Exit statuses and meanings are documented in the aa-enabled.pod file */ static void exit_with_error(int saved_errno, int quiet) { - int err; - switch(saved_errno) { case ENOSYS: if (!quiet)