Commit 8c47f50f authored by Ernestas Kulik's avatar Ernestas Kulik

general: quash some warnings

lineup-parameters: remove unused variable (fixed upstream)
bookmark: cast away const modifier in nautilus_bookmark_compare_with()
when using GLib macros
file-operations: used correct enum in a function call

https://bugzilla.gnome.org/show_bug.cgi?id=772586
parent d82b5bb6
......@@ -146,7 +146,6 @@ match_parameter (gchar *line,
{
static GRegex *regex = NULL;
GMatchInfo *match_info;
gboolean first_param;
gint start_pos = 0;
if (G_UNLIKELY (regex == NULL))
......
......@@ -736,11 +736,11 @@ nautilus_bookmark_compare_with (gconstpointer a,
NautilusBookmark *bookmark_a;
NautilusBookmark *bookmark_b;
g_return_val_if_fail (NAUTILUS_IS_BOOKMARK (a), 1);
g_return_val_if_fail (NAUTILUS_IS_BOOKMARK (b), 1);
g_return_val_if_fail (NAUTILUS_IS_BOOKMARK ((gpointer) a), 1);
g_return_val_if_fail (NAUTILUS_IS_BOOKMARK ((gpointer) b), 1);
bookmark_a = NAUTILUS_BOOKMARK (a);
bookmark_b = NAUTILUS_BOOKMARK (b);
bookmark_a = NAUTILUS_BOOKMARK ((gpointer) a);
bookmark_b = NAUTILUS_BOOKMARK ((gpointer) b);
if (!g_file_equal (bookmark_a->location,
bookmark_b->location))
......
......@@ -8404,7 +8404,7 @@ extract_task_thread_func (GTask *task,
source_file = G_FILE (l->data);
info = g_file_query_info (source_file,
G_FILE_ATTRIBUTE_STANDARD_SIZE,
G_FILE_COPY_NOFOLLOW_SYMLINKS,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
extract_job->common.cancellable,
NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment