mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libutil/util_opt: Remove unused global variables
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 <ifranzki@linux.ibm.com> Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
21fe08ad23
commit
8bcb93673e
@@ -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) \
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user