mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-02 01:12:17 +01:00
tests/gio-test.c: In function ‘recv_message’:
tests/gio-test.c:172:24: error: comparison of unsigned expression in ‘>= 0’ is always true
172 | g_assert (nbytes >= 0 && nbytes < BUFSIZE);
| ^~
glib/gmacros.h:941:25: note: in definition of macro ‘G_LIKELY’
941 | #define G_LIKELY(expr) (expr)
| ^~~~
tests/gio-test.c:172:7: note: in expansion of macro ‘g_assert’
172 | g_assert (nbytes >= 0 && nbytes < BUFSIZE);
| ^~~~~~~~
tests/gio-test.c:188:18: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
188 | for (j = 0; j < nbytes; j++)
| ^
tests/gio-test.c:189:30: error: comparison of integer expressions of different signedness: ‘char’ and ‘guint’ {aka ‘unsigned int’}
189 | g_assert (buf[j] == ' ' + ((nbytes + j) % 95));
| ^~
glib/gmacros.h:941:25: note: in definition of macro ‘G_LIKELY’
941 | #define G_LIKELY(expr) (expr)
| ^~~~
tests/gio-test.c:189:13: note: in expansion of macro ‘g_assert’
189 | g_assert (buf[j] == ' ' + ((nbytes + j) % 95));
| ^~~~~~~~