mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 18:43:42 +01: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:
@@ -328,6 +328,7 @@ g_file_monitor_source_send_synthetic_created (GFileMonitorSource *fms,
|
||||
g_file_monitor_source_queue_event (fms, G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT, child, NULL);
|
||||
}
|
||||
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
static gboolean
|
||||
is_basename (const gchar *name)
|
||||
{
|
||||
@@ -336,6 +337,7 @@ is_basename (const gchar *name)
|
||||
|
||||
return !strchr (name, '/');
|
||||
}
|
||||
#endif /* !G_DISABLE_ASSERT */
|
||||
|
||||
gboolean
|
||||
g_file_monitor_source_handle_event (GFileMonitorSource *fms,
|
||||
|
||||
Reference in New Issue
Block a user