mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 06:28:05 +02:00
clients: fix compiler warning in _do_test_parse_passwd_file()
Since "_i" is int type and G_N_ELEMENTS() is size_t, the compiler
can warn
error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
Avoid the warning by casting.
This commit is contained in:
parent
395273d20d
commit
7c6adf8032
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ test_client_import_wireguard_missing(void)
|
|||
g_assert_cmpint(-1, ==, *_p_error_line); \
|
||||
g_assert(!_local); \
|
||||
\
|
||||
for (_i = 0; _i < G_N_ELEMENTS(_values); _i++) { \
|
||||
for (_i = 0; _i < (int) G_N_ELEMENTS(_values); _i++) { \
|
||||
const NMUtilsNamedValue *_n = &_values[_i]; \
|
||||
const char * _v; \
|
||||
\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue