]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
remove unused variables (#8768)
authorTobias Jungel <Tobias.Jungel@gmail.com>
Fri, 20 Apr 2018 11:31:17 +0000 (13:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Apr 2018 11:31:17 +0000 (13:31 +0200)
clang 5.0 complains with -Wunused-variable

src/shared/path-lookup.c
src/timedate/timedated.c

index b8160767136ba59b5ecbb419ab2890ac3e8c3b4d..554ba73bf8795ade46778b4543c58e7206bd4e6a 100644 (file)
@@ -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;
 
index f479b0ab7f3e39b5be02cb4288d126a66a1cf9d5..59a642cac75b5305627d140f43728dd923ef99ef 100644 (file)
@@ -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);