[PATCH 6/7] tools: allow setting of transit net

Aaron Jones aaronmdjones at gmail.com
Sat Sep 8 16:25:58 CEST 2018


On 08/09/18 14:18, Julian Orth wrote:
> Even with clang's -Weverything I don't get a warning when I compile the
> following:
> 
> #include <stdint.h>
> 
> int f(unsigned int i);
> 
> int f(unsigned int i)
> {
>     return i <= UINT32_MAX;
> }

Interesting... I don't either (gcc 8, clang 8). Perhaps I've been
spending too much time reading PVS-Studio reports.

Still, the condition will always be true; sizeof(unsigned long) is
sizeof(uint32_t) in this case.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20180908/fd0c66fe/attachment-0001.asc>


More information about the WireGuard mailing list