Fix signedness warning in gio/tests/gdbus-test-codegen.c

gio/tests/gdbus-test-codegen.c: In function ‘check_object_manager’:
gio/tests/gdbus-test-codegen.c:2344:20: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘int’
 2344 |   if (om_signal_id != -1)
      |                    ^~
This commit is contained in:
Emmanuel Fleury 2020-11-19 20:05:07 +01:00
parent 34cd8a98c7
commit 4d1f76ec50

View File

@ -1920,7 +1920,7 @@ check_object_manager (void)
GError *error;
GMainLoop *loop;
OMData *om_data = NULL;
guint om_signal_id = -1;
guint om_signal_id = 0;
GDBusObjectManager *pm = NULL;
GList *object_proxies;
GList *proxies;
@ -2356,7 +2356,7 @@ check_object_manager (void)
if (loop != NULL)
g_main_loop_unref (loop);
if (om_signal_id != -1)
if (om_signal_id != 0)
g_dbus_connection_signal_unsubscribe (c, om_signal_id);
g_clear_object (&o3);
g_clear_object (&o2);