[Dnsmasq-discuss] dnsmasq 2.92test2: Compiler warnings

pedro pedro311lists at gmail.com
Tue Apr 8 10:49:54 UTC 2025


Hello Simon,

Also these:

option.c: In function ‘expand_filelist’:
option.c:5744:11: warning: ‘last’ may be used uninitialized in this 
function [-Wmaybe-uninitialized]
         if (last != ah1)
            ^
dnssec.c: In function ‘dnssec_validate_ds’:
dnssec.c:995:22: warning: ‘rc’ may be used uninitialized in this 
function [-Wmaybe-uninitialized]
    int qtype, qclass, rc, i, neganswer = 0, nons = 0, servfail = 0, 
neg_ttl = 0, found_supported = 0;
                       ^
TIA
BR
pedro


> 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
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list