> > 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;
> >        |                      ^~
> > 
> 
> 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;
>                       ^

Patches welcome

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to