mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
build: avoid invalid compiler warning
NetworkManagerUtils.c:3308:93: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
key_len = (((key_len) > (((guint32) 0xffffffff))) ? (((guint32) 0xffffffff)) : (((key_len) < (0)) ? (0) : (key_len)));
~~~~~~~~~ ^ ~~~
Fixes: e603c86926
This commit is contained in:
parent
33d626b295
commit
caa2de563d
1 changed files with 1 additions and 1 deletions
|
|
@ -3305,7 +3305,7 @@ _set_stable_privacy (struct in6_addr *addr,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
key_len = CLAMP (key_len, 0, G_MAXUINT32);
|
key_len = MIN (key_len, G_MAXUINT32);
|
||||||
|
|
||||||
g_checksum_update (sum, addr->s6_addr, 8);
|
g_checksum_update (sum, addr->s6_addr, 8);
|
||||||
g_checksum_update (sum, (const guchar *) ifname, strlen (ifname) + 1);
|
g_checksum_update (sum, (const guchar *) ifname, strlen (ifname) + 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue