[Dnsmasq-discuss] dnsmasq 2.92test2: Compiler warnings

Opty opty77 at gmail.com
Tue Apr 8 09:37:19 UTC 2025


Hello,

could you silence the following compiler warnings?

cache.c: In function ‘cache_recv_insert’:
cache.c:884:17: warning: comparison of integer expressions of
different signedness: ‘ssize_t’ {aka ‘int’} and ‘u32’ {aka ‘unsigned
int’} [-Wsign-compare]
  884 |           if (m > daemon->metrics[METRIC_CRYPTO_HWM])
      |                 ^
cache.c:888:17: warning: comparison of integer expressions of
different signedness: ‘ssize_t’ {aka ‘int’} and ‘u32’ {aka ‘unsigned
int’} [-Wsign-compare]
  888 |           if (m > daemon->metrics[METRIC_SIG_FAIL_HWM])
      |                 ^
cache.c:892:17: warning: comparison of integer expressions of
different signedness: ‘ssize_t’ {aka ‘int’} and ‘u32’ {aka ‘unsigned
int’} [-Wsign-compare]
  892 |           if (m > daemon->metrics[METRIC_WORK_HWM])
      |                 ^

dnssec.c: In function ‘dnssec_validate_ds’:
dnssec.c:995:22: warning: ‘rc’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  995 |   int qtype, qclass, rc, i, neganswer = 0, nons = 0, servfail
= 0, neg_ttl = 0, found_supported = 0;
      |                      ^~

Regards,
Opty



More information about the Dnsmasq-discuss mailing list