mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
build: Quench the compiler's thirst for warnings
This commit is contained in:
parent
581e68b7d3
commit
19972a1b57
@ -1033,6 +1033,7 @@ mechanism_server_data_send (GDBusAuthMechanism *mechanism,
|
|||||||
/* TODO: use GDBusAuthObserver here to get the cookie context to use? */
|
/* TODO: use GDBusAuthObserver here to get the cookie context to use? */
|
||||||
cookie_context = "org_gtk_gdbus_general";
|
cookie_context = "org_gtk_gdbus_general";
|
||||||
|
|
||||||
|
cookie_id = -1;
|
||||||
error = NULL;
|
error = NULL;
|
||||||
if (!keyring_generate_entry (cookie_context,
|
if (!keyring_generate_entry (cookie_context,
|
||||||
&cookie_id,
|
&cookie_id,
|
||||||
|
@ -2143,6 +2143,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
|||||||
mos = G_MEMORY_OUTPUT_STREAM (g_memory_output_stream_new (NULL, 0, g_realloc, g_free));
|
mos = G_MEMORY_OUTPUT_STREAM (g_memory_output_stream_new (NULL, 0, g_realloc, g_free));
|
||||||
dos = g_data_output_stream_new (G_OUTPUT_STREAM (mos));
|
dos = g_data_output_stream_new (G_OUTPUT_STREAM (mos));
|
||||||
|
|
||||||
|
byte_order = G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN;
|
||||||
switch (message->byte_order)
|
switch (message->byte_order)
|
||||||
{
|
{
|
||||||
case G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN:
|
case G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN:
|
||||||
|
@ -2470,6 +2470,7 @@ g_dbus_proxy_call_sync (GDBusProxy *proxy,
|
|||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
G_IO_ERROR_FAILED,
|
G_IO_ERROR_FAILED,
|
||||||
_("Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"));
|
_("Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"));
|
||||||
|
ret = NULL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1023,6 +1023,7 @@ initable_init (GInitable *initable,
|
|||||||
GError *last_error;
|
GError *last_error;
|
||||||
|
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
addr_array = NULL;
|
||||||
last_error = NULL;
|
last_error = NULL;
|
||||||
|
|
||||||
if (!g_dbus_is_guid (server->guid))
|
if (!g_dbus_is_guid (server->guid))
|
||||||
|
@ -265,6 +265,8 @@ test_default_direction (void)
|
|||||||
g_dbus_node_info_unref (info);
|
g_dbus_node_info_unref (info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* XXX: need to figure out how generous we want to be here */
|
||||||
/* test that extraneous attributes are ignored
|
/* test that extraneous attributes are ignored
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
@ -297,6 +299,7 @@ test_extra_data (void)
|
|||||||
|
|
||||||
g_dbus_node_info_unref (info);
|
g_dbus_node_info_unref (info);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
@ -320,7 +323,7 @@ main (int argc,
|
|||||||
g_test_add_func ("/gdbus/introspection-generate", test_generate);
|
g_test_add_func ("/gdbus/introspection-generate", test_generate);
|
||||||
g_test_add_func ("/gdbus/introspection-default-direction", test_default_direction);
|
g_test_add_func ("/gdbus/introspection-default-direction", test_default_direction);
|
||||||
#if 0
|
#if 0
|
||||||
/* need to figure out how generous we want to be here */
|
/* XXX: need to figure out how generous we want to be here */
|
||||||
g_test_add_func ("/gdbus/introspection-extra-data", test_extra_data);
|
g_test_add_func ("/gdbus/introspection-extra-data", test_extra_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -736,6 +736,7 @@ test_peer (void)
|
|||||||
g_object_unref (method_reply_message);
|
g_object_unref (method_reply_message);
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
|
len = 0;
|
||||||
buf = read_all_from_fd (fd, &len, &error);
|
buf = read_all_from_fd (fd, &len, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
g_assert (buf != NULL);
|
g_assert (buf != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user