bus/peer: annotate unused cleanup variables
We tend to assign to cleanup-variables to make sure a destructor is
called on block-cleanup. Unfortunately, some compilers consider this
"assigned but not used". Annotate those instances so the compiler knows
our intention.
@@ -631,7 +631,7 @@ static Name *peer_match_rule_to_name(MatchRule *rule) {
}
int peer_remove_match(Peer *peer, const char *rule_string) {
- _c_cleanup_(name_unrefp) Name *name = NULL;
+ _c_cleanup_(name_unrefp) _c_unused_ Name *name = NULL;
MatchRule *rule;
int r;
@@ -708,7 +708,7 @@ void peer_flush_matches(Peer *peer) {
CRBNode *node;
while ((node = peer->owned_matches.rule_tree.root)) {
- _c_cleanup_(name_unrefp) Name *name = NULL;
+ _c_cleanup_(name_unrefp) _c_unused_ Name *name = NULL;
MatchRule *rule = c_container_of(node, MatchRule, owner_node);
/*
