diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-15 10:56:21 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-15 13:09:45 +0200 |
commit | d7ac09520be8f0d3d94df3dd4fd8a6e7404c0174 (patch) | |
tree | 834a60f9b7b22957ff572bcd979737992a0e7ae7 /src | |
parent | bd8ea741a424cc730ce88cf62af0046cc33d5249 (diff) | |
download | systemd-d7ac09520be8f0d3d94df3dd4fd8a6e7404c0174.tar.gz |
tree-wide: mark set-but-not-used variables as unused to make LLVM happy
LLVM 13 introduced `-Wunused-but-set-variable` diagnostic flag, which
trips over some intentionally set-but-not-used variables or variables
attached to cleanup handlers with side effects (`_cleanup_umask_`,
`_cleanup_(notify_on_cleanup)`, `_cleanup_(restore_sigsetp)`, etc.):
```
../src/basic/process-util.c:1257:46: error: variable 'saved_ssp' set but not used [-Werror,-Wunused-but-set-variable]
_cleanup_(restore_sigsetp) sigset_t *saved_ssp = NULL;
^
1 error generated.
```
Diffstat (limited to 'src')
33 files changed, 51 insertions, 43 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c index ecb14306f8..5855ac3d57 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -1254,7 +1254,7 @@ int safe_fork_full( pid_t original_pid, pid; sigset_t saved_ss, ss; - _cleanup_(restore_sigsetp) sigset_t *saved_ssp = NULL; + _unused_ _cleanup_(restore_sigsetp) sigset_t *saved_ssp = NULL; bool block_signals = false, block_all = false; int prio, r; diff --git a/src/basic/unit-file.c b/src/basic/unit-file.c index 884a0674a9..618cf8b489 100644 --- a/src/basic/unit-file.c +++ b/src/basic/unit-file.c @@ -286,7 +286,8 @@ int unit_file_build_name_map( FOREACH_DIRENT(de, d, log_warning_errno(errno, "Failed to read \"%s\", ignoring: %m", *dir)) { char *filename; - _cleanup_free_ char *_filename_free = NULL, *simplified = NULL; + _unused_ _cleanup_free_ char *_filename_free = NULL; + _cleanup_free_ char *simplified = NULL; const char *suffix, *dst = NULL; bool valid_unit_name; diff --git a/src/core/manager.c b/src/core/manager.c index b767b0ee6c..60939b56af 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1758,7 +1758,7 @@ int manager_startup(Manager *m, FILE *serialization, FDSet *fds, const char *roo { /* This block is (optionally) done with the reloading counter bumped */ - _cleanup_(manager_reloading_stopp) Manager *reloading = NULL; + _unused_ _cleanup_(manager_reloading_stopp) Manager *reloading = NULL; /* If we will deserialize make sure that during enumeration this is already known, so we increase the * counter here already */ @@ -3275,7 +3275,7 @@ void manager_retry_runtime_watchdog(Manager *m) { } int manager_reload(Manager *m) { - _cleanup_(manager_reloading_stopp) Manager *reloading = NULL; + _unused_ _cleanup_(manager_reloading_stopp) Manager *reloading = NULL; _cleanup_fdset_free_ FDSet *fds = NULL; _cleanup_fclose_ FILE *f = NULL; int r; diff --git a/src/core/namespace.c b/src/core/namespace.c index 8d4388ded5..0d49f52217 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -853,7 +853,7 @@ static int mount_private_dev(MountEntry *m) { char temporary_mount[] = "/tmp/namespace-dev-XXXXXX"; const char *d, *dev = NULL, *devpts = NULL, *devshm = NULL, *devhugepages = NULL, *devmqueue = NULL, *devlog = NULL, *devptmx = NULL; bool can_mknod = true; - _cleanup_umask_ mode_t u; + _unused_ _cleanup_umask_ mode_t u; int r; assert(m); diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index ceaf10e647..74ca1cb262 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -1674,7 +1674,7 @@ static int run(int argc, char *argv[]) { verb = argv[1]; if (streq(verb, "attach")) { - _cleanup_(remove_and_erasep) const char *destroy_key_file = NULL; + _unused_ _cleanup_(remove_and_erasep) const char *destroy_key_file = NULL; _cleanup_(erase_and_freep) void *key_data = NULL; const char *volume, *source, *key_file, *options; crypt_status_info status; diff --git a/src/home/homed.c b/src/home/homed.c index 807d25e273..579c289a68 100644 --- a/src/home/homed.c +++ b/src/home/homed.c @@ -14,7 +14,7 @@ static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; int r; log_setup(); diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c index c48fef16ef..a48a8570c4 100644 --- a/src/initctl/initctl.c +++ b/src/initctl/initctl.c @@ -311,7 +311,7 @@ static int process_event(Server *s, struct epoll_event *ev) { static int run(int argc, char *argv[]) { _cleanup_(server_done) Server server = { .epoll_fd = -1 }; - _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; int r, n; if (argc > 1) diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 140ecac207..ba2a00da64 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -1099,7 +1099,7 @@ static int load_certificates(char **key, char **cert, char **trust) { static int run(int argc, char **argv) { _cleanup_(journal_remote_server_destroy) RemoteServer s = {}; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; _cleanup_(erase_and_freep) char *key = NULL; _cleanup_free_ char *cert = NULL, *trust = NULL; int r; diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 9c1ee0188d..13a9f74e6f 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -272,7 +272,7 @@ int journal_remote_add_source(RemoteServer *s, int fd, char* name, bool own_name int journal_remote_add_raw_socket(RemoteServer *s, int fd) { int r; - _cleanup_close_ int fd_ = fd; + _unused_ _cleanup_close_ int fd_ = fd; char name[STRLEN("raw-socket-") + DECIMAL_STR_MAX(int) + 1]; assert(fd >= 0); diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 3c28bbab7a..1456c9115f 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -820,7 +820,7 @@ static int open_journal(sd_journal **j) { static int run(int argc, char **argv) { _cleanup_(destroy_uploader) Uploader u = {}; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; bool use_journal; int r; diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 9de31c2be0..8c6684b2d3 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -903,7 +903,7 @@ static void dispatch_message_real( pid_t object_pid) { char source_time[sizeof("_SOURCE_REALTIME_TIMESTAMP=") + DECIMAL_STR_MAX(usec_t)]; - _cleanup_free_ char *cmdline1 = NULL, *cmdline2 = NULL; + _unused_ _cleanup_free_ char *cmdline1 = NULL, *cmdline2 = NULL; uid_t journal_uid; ClientContext *o; diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c index 24da8411f6..b9268dfcd1 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c @@ -94,7 +94,8 @@ int device_add_property_aux(sd_device *device, const char *key, const char *valu properties = &device->properties; if (value) { - _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL, *old_value = NULL; + _unused_ _cleanup_free_ char *old_value = NULL; + _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL; int r; r = ordered_hashmap_ensure_allocated(properties, &string_hash_ops_free_free); @@ -119,7 +120,8 @@ int device_add_property_aux(sd_device *device, const char *key, const char *valu TAKE_PTR(new_key); TAKE_PTR(new_value); } else { - _cleanup_free_ char *old_key = NULL, *old_value = NULL; + _unused_ _cleanup_free_ char *old_value = NULL; + _cleanup_free_ char *old_key = NULL; old_value = ordered_hashmap_remove2(*properties, key, (void**) &old_key); } @@ -1939,7 +1941,8 @@ _public_ int sd_device_get_trigger_uuid(sd_device *device, sd_id128_t *ret) { } static int device_cache_sysattr_value(sd_device *device, const char *key, char *value) { - _cleanup_free_ char *new_key = NULL, *old_value = NULL; + _unused_ _cleanup_free_ char *old_value = NULL; + _cleanup_free_ char *new_key = NULL; int r; assert(device); diff --git a/src/libsystemd/sd-journal/test-catalog.c b/src/libsystemd/sd-journal/test-catalog.c index 982fec0d8d..316c3b1634 100644 --- a/src/libsystemd/sd-journal/test-catalog.c +++ b/src/libsystemd/sd-journal/test-catalog.c @@ -53,7 +53,7 @@ static void test_catalog_import_invalid(void) { } static void test_catalog_import_badid(void) { - _cleanup_ordered_hashmap_free_free_free_ OrderedHashmap *h = NULL; + _unused_ _cleanup_ordered_hashmap_free_free_free_ OrderedHashmap *h = NULL; const char *input = "-- 0027229ca0644181a76c4e92458afaff dededededededededededededededede\n" \ "Subject: message\n" \ diff --git a/src/login/logind-core.c b/src/login/logind-core.c index 9d98d36b9f..57d2d64e49 100644 --- a/src/login/logind-core.c +++ b/src/login/logind-core.c @@ -703,7 +703,7 @@ bool manager_all_buttons_ignored(Manager *m) { int manager_read_utmp(Manager *m) { #if ENABLE_UTMP int r; - _cleanup_(utxent_cleanup) bool utmpx = false; + _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; assert(m); diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 3f09750ec9..cde2b5e8bb 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -1323,7 +1323,7 @@ bool session_is_controller(Session *s, const char *sender) { } static void session_release_controller(Session *s, bool notify) { - _cleanup_free_ char *name = NULL; + _unused_ _cleanup_free_ char *name = NULL; SessionDevice *sd; if (!s->controller) diff --git a/src/login/logind.c b/src/login/logind.c index 478779900f..c128d64ed4 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1157,7 +1157,7 @@ static int manager_run(Manager *m) { static int run(int argc, char *argv[]) { _cleanup_(manager_unrefp) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; int r; log_set_facility(LOG_AUTH); diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c index 8739b62891..7a769988ec 100644 --- a/src/network/networkd-dhcp-common.c +++ b/src/network/networkd-dhcp-common.c @@ -702,8 +702,10 @@ int config_parse_dhcp_send_option( void *data, void *userdata) { - _cleanup_(sd_dhcp_option_unrefp) sd_dhcp_option *opt4 = NULL, *old4 = NULL; - _cleanup_(sd_dhcp6_option_unrefp) sd_dhcp6_option *opt6 = NULL, *old6 = NULL; + _cleanup_(sd_dhcp_option_unrefp) sd_dhcp_option *opt4 = NULL; + _cleanup_(sd_dhcp6_option_unrefp) sd_dhcp6_option *opt6 = NULL; + _unused_ _cleanup_(sd_dhcp_option_unrefp) sd_dhcp_option *old4 = NULL; + _unused_ _cleanup_(sd_dhcp6_option_unrefp) sd_dhcp6_option *old6 = NULL; uint32_t uint32_data, enterprise_identifier = 0; _cleanup_free_ char *word = NULL, *q = NULL; OrderedHashmap **options = data; diff --git a/src/network/networkd.c b/src/network/networkd.c index 48f6061b1f..ff3380c82c 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -19,7 +19,7 @@ static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; int r; log_setup(); diff --git a/src/network/wait-online/wait-online.c b/src/network/wait-online/wait-online.c index ad6f18bbd4..a679b858fa 100644 --- a/src/network/wait-online/wait-online.c +++ b/src/network/wait-online/wait-online.c @@ -195,7 +195,7 @@ static int parse_argv(int argc, char *argv[]) { static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; int r; log_setup(); diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index ff2081d405..97e55adc48 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2196,7 +2196,7 @@ static int copy_devnodes(const char *dest) { "tty\0" "net/tun\0"; - _cleanup_umask_ mode_t u; + _unused_ _cleanup_umask_ mode_t u; const char *d; int r = 0; @@ -2279,7 +2279,7 @@ static int copy_devnodes(const char *dest) { } static int make_extra_nodes(const char *dest) { - _cleanup_umask_ mode_t u; + _unused_ _cleanup_umask_ mode_t u; size_t i; int r; @@ -2480,7 +2480,7 @@ static int setup_kmsg(int kmsg_socket) { _cleanup_(unlink_and_freep) char *from = NULL; _cleanup_free_ char *fifo = NULL; _cleanup_close_ int fd = -1; - _cleanup_umask_ mode_t u; + _unused_ _cleanup_umask_ mode_t u; int r; assert(kmsg_socket >= 0); diff --git a/src/nss-systemd/userdb-glue.c b/src/nss-systemd/userdb-glue.c index c865ff0d82..002e6925f9 100644 --- a/src/nss-systemd/userdb-glue.c +++ b/src/nss-systemd/userdb-glue.c @@ -303,7 +303,7 @@ enum nss_status userdb_getgrnam( } if (!g) { - _cleanup_(_nss_systemd_unblockp) bool blocked = false; + _unused_ _cleanup_(_nss_systemd_unblockp) bool blocked = false; if (strv_isempty(members)) return NSS_STATUS_NOTFOUND; @@ -365,7 +365,7 @@ enum nss_status userdb_getgrgid( } if (!g) { - _cleanup_(_nss_systemd_unblockp) bool blocked = false; + _unused_ _cleanup_(_nss_systemd_unblockp) bool blocked = false; /* So, quite possibly we have to extend an existing group record with additional members. But * to do this we need to know the group name first. The group didn't exist via non-NSS diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c index 4d7c28fe8e..1f38f7eac1 100644 --- a/src/oom/oomd-manager.c +++ b/src/oom/oomd-manager.c @@ -387,7 +387,7 @@ static void clear_candidate_hashmapp(Manager **m) { static int monitor_memory_pressure_contexts_handler(sd_event_source *s, uint64_t usec, void *userdata) { /* Don't want to use stale candidate data. Setting this will clear the candidate hashmap on return unless we * update the candidate data (in which case clear_candidates will be NULL). */ - _cleanup_(clear_candidate_hashmapp) Manager *clear_candidates = userdata; + _unused_ _cleanup_(clear_candidate_hashmapp) Manager *clear_candidates = userdata; _cleanup_set_free_ Set *targets = NULL; bool in_post_action_delay = false; Manager *m = userdata; diff --git a/src/oom/oomd.c b/src/oom/oomd.c index 5b50833df7..abc96a0587 100644 --- a/src/oom/oomd.c +++ b/src/oom/oomd.c @@ -116,7 +116,7 @@ static int parse_argv(int argc, char *argv[]) { } static int run(int argc, char *argv[]) { - _cleanup_(notify_on_cleanup) const char *notify_msg = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_msg = NULL; _cleanup_(manager_freep) Manager *m = NULL; _cleanup_free_ char *swap = NULL; unsigned long long s = 0; diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c index f73ead872d..c2fca1fabe 100644 --- a/src/resolve/resolved-dns-cache.c +++ b/src/resolve/resolved-dns-cache.c @@ -274,7 +274,7 @@ static int dns_cache_link_item(DnsCache *c, DnsCacheItem *i) { first = hashmap_get(c->by_key, i->key); if (first) { - _cleanup_(dns_resource_key_unrefp) DnsResourceKey *k = NULL; + _unused_ _cleanup_(dns_resource_key_unrefp) DnsResourceKey *k = NULL; /* Keep a reference to the original key, while we manipulate the list. */ k = dns_resource_key_ref(first->key); diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index 7f341986d9..3b5e456db2 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -165,7 +165,7 @@ static int dns_query_candidate_add_transaction( } static int dns_query_candidate_go(DnsQueryCandidate *c) { - _cleanup_(dns_query_candidate_unrefp) DnsQueryCandidate *keep_c = NULL; + _unused_ _cleanup_(dns_query_candidate_unrefp) DnsQueryCandidate *keep_c = NULL; DnsTransaction *t; int r; unsigned n = 0; diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c index aabaa266e9..85ab917c4f 100644 --- a/src/resolve/resolved.c +++ b/src/resolve/resolved.c @@ -23,7 +23,7 @@ static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; int r; log_setup(); diff --git a/src/shared/barrier.c b/src/shared/barrier.c index 2864c1b8f9..87061f55d7 100644 --- a/src/shared/barrier.c +++ b/src/shared/barrier.c @@ -90,7 +90,7 @@ * Returns: 0 on success, negative error code on failure. */ int barrier_create(Barrier *b) { - _cleanup_(barrier_destroyp) Barrier *staging = b; + _unused_ _cleanup_(barrier_destroyp) Barrier *staging = b; int r; assert(b); diff --git a/src/shared/dev-setup.c b/src/shared/dev-setup.c index b788b06913..c3e717ae11 100644 --- a/src/shared/dev-setup.c +++ b/src/shared/dev-setup.c @@ -81,7 +81,7 @@ int make_inaccessible_nodes( { "inaccessible/blk", S_IFBLK | 0000 }, }; - _cleanup_umask_ mode_t u; + _unused_ _cleanup_umask_ mode_t u; int r; if (!parent_dir) diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c index fee5bd1c95..f2f53380ad 100644 --- a/src/shared/utmp-wtmp.c +++ b/src/shared/utmp-wtmp.c @@ -25,7 +25,7 @@ #include "utmp-wtmp.h" int utmp_get_runlevel(int *runlevel, int *previous) { - _cleanup_(utxent_cleanup) bool utmpx = false; + _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; struct utmpx *found, lookup = { .ut_type = RUN_LVL }; const char *e; @@ -87,7 +87,7 @@ static void init_entry(struct utmpx *store, usec_t t) { } static int write_entry_utmp(const struct utmpx *store) { - _cleanup_(utxent_cleanup) bool utmpx = false; + _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; assert(store); @@ -215,7 +215,7 @@ int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line } int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) { - _cleanup_(utxent_cleanup) bool utmpx = false; + _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; struct utmpx lookup = { .ut_type = INIT_PROCESS /* looks for DEAD_PROCESS, LOGIN_PROCESS, USER_PROCESS, too */ }, store, store_wtmp, *found; @@ -340,7 +340,7 @@ int utmp_wall( bool (*match_tty)(const char *tty, void *userdata), void *userdata) { - _cleanup_(utxent_cleanup) bool utmpx = false; + _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; _cleanup_free_ char *text = NULL, *hn = NULL, *un = NULL, *stdin_tty = NULL; struct utmpx *u; int r; diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index 179562696d..94e99b42de 100644 --- a/src/timesync/timesyncd.c +++ b/src/timesync/timesyncd.c @@ -87,7 +87,7 @@ settime: static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_message = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_message = NULL; const char *user = "systemd-timesync"; uid_t uid, uid_current; gid_t gid; diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index 7699bad9e0..839df8d6d2 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -338,7 +338,8 @@ static int process_and_watch_password_files(bool watch) { _FD_MAX }; - _cleanup_close_ int notify = -1, signal_fd = -1, tty_block_fd = -1; + _unused_ _cleanup_close_ int tty_block_fd = -1; + _cleanup_close_ int notify = -1, signal_fd = -1; struct pollfd pollfd[_FD_MAX]; sigset_t mask; int r; diff --git a/src/udev/udevd.c b/src/udev/udevd.c index df720898ea..6df580d629 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1136,7 +1136,8 @@ static int on_ctrl_msg(UdevCtrl *uctrl, UdevCtrlMessageType type, const UdevCtrl manager_reload(manager); break; case UDEV_CTRL_SET_ENV: { - _cleanup_free_ char *key = NULL, *val = NULL, *old_key = NULL, *old_val = NULL; + _unused_ _cleanup_free_ char *old_val = NULL; + _cleanup_free_ char *key = NULL, *val = NULL, *old_key = NULL; const char *eq; eq = strchr(value->buf, '='); diff --git a/src/userdb/userdbd.c b/src/userdb/userdbd.c index d469411eb8..0c321bf411 100644 --- a/src/userdb/userdbd.c +++ b/src/userdb/userdbd.c @@ -24,7 +24,7 @@ static int run(int argc, char *argv[]) { _cleanup_(manager_freep) Manager *m = NULL; - _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; int r; log_setup(); |