[Dnsmasq-discuss] Announce: dnsmasq-2.77rc4

Simon Kelley simon at thekelleys.org.uk
Sun May 21 22:49:54 BST 2017


On 21/05/17 11:38, Matthias Andree wrote:
> Am 20.05.2017 um 22:50 schrieb Simon Kelley:
>> I've just mase the fourth, and probably final, release candidate for
>> dnsmasq-27. Please download, compile and run, and report any problems
>> ASAP. If all looks OK, 2.77 will happen in the next week.
>>
>> http://www.thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.77rc4.tar.gz
> 
> Three issues during compilation on FreeBSD 10.3 amd64, which look like
> genuine bugs, and the forward.c seem critical
> - these should likely be "server->flags & SERV_DO_DNSSEC), with & not &&.
> 

Yuck. those came from an external patch, but I should have caught them.

>> forward.c:902:60: warning: use of logical '&&' with constant operand
>> [-Wconstant-logical-operand]
>>                                                   
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                                     
>> ^  ~~~~~~~~~~~~~~
>> forward.c:902:60: note: use '&' for a bitwise operation
>>                                                   
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                                     
>> ^~
>>                                                                                                     
>> &
>> forward.c:902:60: note: remove constant to silence this warning
>>                                                   
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                                    
>> ~^~~~~~~~~~~~~~~~~
>> forward.c:1480:59: warning: use of logical '&&' with constant operand
>> [-Wconstant-logical-operand]
>>                                           
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                             
>> ^  ~~~~~~~~~~~~~~
>> forward.c:1480:59: note: use '&' for a bitwise operation
>>                                           
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                             
>> ^~
>>                                                                                             
>> &
>> forward.c:1480:59: note: remove constant to silence this warning
>>                                           
>> option_bool(OPT_DNSSEC_NO_SIGN) && (server->flags && SERV_DO_DNSSEC),
>> NULL, NULL);
>>                                                                                            
>> ~^~~~~~~~~~~~~~~~~
>>
>> rfc2131.c:839:25: warning: data argument not used by format string
>> [-Wformat-extra-args]
>>                    service->basename, layer);
>>                                       ^
Taking the patch for this reluctantly. The original code seems better to
me. Pity is confuses the compiler.


> 
> I think you may want to resolve these before 2.77 release time.
> 
> And when trying to strip down the build disabling all options I expose
> in FreeBSD, I get these, which are cosmetic and, in the option.c case,
> are bloat.
> 
> The attached patch series (against Git master) fixes these. Use git am
> to apply them in given order, and carefully review 0003* whether the
> option_len() macro needs to be changed instead.
> 
>> option.c:910:23: warning: unused function 'add_rev6' [-Wunused-function]
>> static struct server *add_rev6(struct in6_addr *addr, int msize)
>>                       ^
>>
>> network.c:936:24: warning: unused variable 'l6' [-Wunused-variable]
>>   struct listener *l, *l6;
>>                        ^
> 
> You may consider resolving these before 2.77 with proper #ifdefs. I
> don't care much.
> 
>

I have a policy of leaving such: why complicate the code even more than
the ifdefs already do?


Cheers,

Simon.

> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20170521/b0a89e44/attachment.sig>


More information about the Dnsmasq-discuss mailing list