resolved: add _unused_ annotations to appease clang

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-11-23 16:20:14 +01:00
parent b2d781ec86
commit fc44acc0d2
+2 -2
View File
@@ -2384,7 +2384,7 @@ int dns_packet_extract(DnsPacket *p) {
_cleanup_(dns_question_unrefp) DnsQuestion *question = NULL;
_cleanup_(dns_answer_unrefp) DnsAnswer *answer = NULL;
_cleanup_(rewind_dns_packet) DnsPacketRewinder rewinder = REWINDER_INIT(p);
_unused_ _cleanup_(rewind_dns_packet) DnsPacketRewinder rewinder = REWINDER_INIT(p);
int r;
dns_packet_rewind(p, DNS_PACKET_HEADER_SIZE);
@@ -2500,7 +2500,7 @@ int dns_packet_patch_ttls(DnsPacket *p, usec_t timestamp) {
/* Adjusts all TTLs in the packet by subtracting the time difference between now and the specified timestamp */
_cleanup_(rewind_dns_packet) DnsPacketRewinder rewinder = REWINDER_INIT(p);
_unused_ _cleanup_(rewind_dns_packet) DnsPacketRewinder rewinder = REWINDER_INIT(p);
unsigned n;
usec_t k;
int r;