From 8bcb93673ef5bdfb2d4029db4d1a897207a3d084 Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Mon, 21 Jun 2021 10:51:51 +0200 Subject: [PATCH] libutil/util_opt: Remove unused global variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A compile with sparse (make C=1) shows the following warnings: util_opt.c:42:19: warning: symbol 'util_opt_l' was not declared. Should it be static? util_prg.c:28:19: warning: symbol 'util_prg_l' was not declared. Should it be static? util_opt_l and util_prg_l are not used anywhere, and also not declared in any header file. Looks like they are superfluous, remove them. Signed-off-by: Ingo Franzki Reviewed-by: Jan Hoeppner Signed-off-by: Jan Höppner --- libutil/util_opt.c | 2 -- libutil/util_prg.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/libutil/util_opt.c b/libutil/util_opt.c index c6daa14e..2e59687e 100644 --- a/libutil/util_opt.c +++ b/libutil/util_opt.c @@ -39,8 +39,6 @@ static struct util_opt_l { const char *command; } l; -struct util_opt_l *util_opt_l = &l; - /// @endcond #define util_opt_iterate(opt) \ diff --git a/libutil/util_prg.c b/libutil/util_prg.c index 48ea0a6a..959d5172 100644 --- a/libutil/util_prg.c +++ b/libutil/util_prg.c @@ -25,8 +25,6 @@ static struct util_prg_l { const char *command; } l; -struct util_prg_l *util_prg_l = &l; - /** * Set the current command for command line option processing *