From a689fdb7beccccbbe448d262993489f0f1c7a825 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 25 Jan 2023 04:05:56 +0000 Subject: openrc-run: fix -Wunused-but-set-variable --- src/openrc-run/openrc-run.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/openrc-run/openrc-run.c b/src/openrc-run/openrc-run.c index f2bf76b9..6f5158a6 100644 --- a/src/openrc-run/openrc-run.c +++ b/src/openrc-run/openrc-run.c @@ -645,7 +645,7 @@ svc_start_deps(void) bool first; RC_STRING *svc, *svc2; RC_SERVICE state; - int depoptions = RC_DEP_TRACE, n; + int depoptions = RC_DEP_TRACE; size_t len; char *p, *tmp; pid_t pid; @@ -755,7 +755,6 @@ svc_start_deps(void) rc_stringlist_free(use_services); use_services = NULL; len = 0; - n = 0; TAILQ_FOREACH(svc, tmplist, entries) { rc_service_schedule_start(svc->value, service); use_services = rc_deptree_depend(deptree, @@ -765,7 +764,6 @@ svc_start_deps(void) rc_stringlist_free(use_services); use_services = NULL; len += strlen(svc->value) + 2; - n++; } len += 5; -- cgit v1.2.3