From 201b26a3441a46c2acf43d6718c01f1df173f014 Mon Sep 17 00:00:00 2001 From: Tobias Jungel Date: Fri, 20 Apr 2018 13:31:17 +0200 Subject: [PATCH] remove unused variables (#8768) clang 5.0 complains with -Wunused-variable --- src/shared/path-lookup.c | 1 - src/timedate/timedated.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c index b8160767136..554ba73bf87 100644 --- a/src/shared/path-lookup.c +++ b/src/shared/path-lookup.c @@ -729,7 +729,6 @@ int lookup_paths_reduce(LookupPaths *p) { return 0; while (p->search_path[c]) { - _cleanup_free_ char *chased = NULL; struct stat st; unsigned k; diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index f479b0ab7f3..59a642cac75 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -83,7 +83,6 @@ static void context_free(Context *c) { } static int context_add_ntp_service(Context *c, const char *s) { - _cleanup_free_ char *name = NULL; UnitStatusInfo *u; if (!unit_name_is_valid(s, UNIT_NAME_PLAIN)) @@ -322,7 +321,6 @@ static int context_update_ntp_status(Context *c, sd_bus *bus, sd_bus_message *m) LIST_FOREACH(units, u, c->units) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; - _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; _cleanup_free_ char *path = NULL; unit_status_info_clear(u); -- 2.47.3