mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 05:50:28 +01:00
clang warns:
make[4]: Entering directory `./NetworkManager/src'
CC nm-device.lo
devices/nm-device.c:367:12: error: comparison of unsigned enum expression >= 0 is always true [-Werror,-Wtautological-compare]
if (state >= 0 && state < G_N_ELEMENTS (state_table))
~~~~~ ^ ~
devices/nm-device.c:443:13: error: comparison of unsigned enum expression >= 0 is always true [-Werror,-Wtautological-compare]
if (reason >= 0 && reason < G_N_ELEMENTS (reason_table))
~~~~~~ ^ ~
Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| tests | ||
| Makefile.am | ||
| nm-dhcp-client.c | ||
| nm-dhcp-client.h | ||
| nm-dhcp-dhclient-utils.c | ||
| nm-dhcp-dhclient-utils.h | ||
| nm-dhcp-dhclient.c | ||
| nm-dhcp-dhclient.h | ||
| nm-dhcp-dhcpcd.c | ||
| nm-dhcp-dhcpcd.h | ||
| nm-dhcp-helper.c | ||
| nm-dhcp-helper.conf | ||
| nm-dhcp-manager.c | ||
| nm-dhcp-manager.h | ||