From 60a9414cad23b6e8cc6b13e37675826ed05f7709 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 13 May 2011 20:57:01 +0200 Subject: fix "variable 'foo' set but not used" warnings Signed-off-by: Denys Vlasenko --- runit/sv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runit') diff --git a/runit/sv.c b/runit/sv.c index 322688a36..5b01c875c 100644 --- a/runit/sv.c +++ b/runit/sv.c @@ -437,7 +437,6 @@ static int control(const char *a) int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sv_main(int argc UNUSED_PARAM, char **argv) { - unsigned opt; char *x; char *action; const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR; @@ -458,7 +457,7 @@ int sv_main(int argc UNUSED_PARAM, char **argv) if (x) waitsec = xatou(x); opt_complementary = "w+:vv"; /* -w N, -v is a counter */ - opt = getopt32(argv, "w:v", &waitsec, &verbose); + getopt32(argv, "w:v", &waitsec, &verbose); argv += optind; action = *argv++; if (!action || !*argv) bb_show_usage(); -- cgit v1.2.3