mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 18:07:54 +02:00
gio: Fix various compiler warnings when compiling with G_DISABLE_ASSERT
Mostly unused variables which are only used in a g_assert() call otherwise. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1708
This commit is contained in:
@@ -389,7 +389,9 @@ g_socket_connection_set_property (GObject *object,
|
||||
static void
|
||||
g_socket_connection_constructed (GObject *object)
|
||||
{
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
GSocketConnection *connection = G_SOCKET_CONNECTION (object);
|
||||
#endif
|
||||
|
||||
g_assert (connection->priv->socket != NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user