[nautilus/wip/ernestask/warnings: 10/14] general: mark static functions as such



commit 0afb6e080805c0e30b216489ccfd5aec2c7c6a67
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon Feb 26 14:15:30 2018 +0200

    general: mark static functions as such
    
    Non-static functions without any previous declaration cause warnings and
    are usually indicative of incorrectly marked static functions.

 src/nautilus-list-view.c        | 2 +-
 src/nautilus-program-choosing.c | 2 +-
 src/nautilus-tag-manager.c      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 4433d3616..9292086d7 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -406,7 +406,7 @@ row_activated_callback (GtkTreeView       *treeview,
     activate_selected_items (view);
 }
 
-gboolean
+static gboolean
 check_starred_status (GtkTreeModel *model,
                       GtkTreePath  *path,
                       GtkTreeIter  *iter,
diff --git a/src/nautilus-program-choosing.c b/src/nautilus-program-choosing.c
index a4b035894..4cbff429f 100644
--- a/src/nautilus-program-choosing.c
+++ b/src/nautilus-program-choosing.c
@@ -532,7 +532,7 @@ window_export_handle (GtkWindow               *window,
     return FALSE;
 }
 
-void
+static void
 gtk_window_unexport_handle (GtkWindow *window)
 {
 #ifdef GDK_WINDOWING_WAYLAND
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c
index f6ecac652..e822bea78 100644
--- a/src/nautilus-tag-manager.c
+++ b/src/nautilus-tag-manager.c
@@ -91,7 +91,7 @@ nautilus_tag_manager_file_with_id_changed_url (GHashTable  *hash_table,
     return NULL;
 }
 
-void
+static void
 destroy_insert_task_data (gpointer data)
 {
     InsertTaskData *task_data;
@@ -680,7 +680,7 @@ nautilus_tag_manager_unstar_files (NautilusTagManager  *self,
     g_string_free (query, TRUE);
 }
 
-void
+static void
 on_tracker_notifier_events (TrackerNotifier *notifier,
                             GPtrArray       *events,
                             gpointer         user_data)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]