[gnome-dictionary/ebassi/merge-gdict: 2/7] Mark static functions as such




commit 6d5a0449bedbab746e29d87b4842cedb680037fc
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Sep 23 16:03:39 2020 +0100

    Mark static functions as such
    
    Avoid a compiler warning for functions without a prototype.

 src/gdict-common.c  | 2 +-
 src/gdict-sidebar.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gdict-common.c b/src/gdict-common.c
index ad2e77a..aff9566 100644
--- a/src/gdict-common.c
+++ b/src/gdict-common.c
@@ -71,7 +71,7 @@ gdict_get_config_dir (void)
   return retval;
 }
 
-gboolean
+static gboolean
 gdict_migrate_configs (void)
 {
   gchar *old_data_dir_name; // this one was used for configs only
diff --git a/src/gdict-sidebar.c b/src/gdict-sidebar.c
index 8a535d6..7fa5eb8 100644
--- a/src/gdict-sidebar.c
+++ b/src/gdict-sidebar.c
@@ -70,7 +70,7 @@ static GQuark sidebar_page_id_quark = 0;
 
 G_DEFINE_TYPE_WITH_PRIVATE (GdictSidebar, gdict_sidebar, GTK_TYPE_BOX)
 
-SidebarPage *
+static SidebarPage *
 sidebar_page_new (const gchar *id,
                  const gchar *name,
                  GtkWidget   *widget)
@@ -88,7 +88,7 @@ sidebar_page_new (const gchar *id,
   return page;
 }
 
-void
+static void
 sidebar_page_free (SidebarPage *page)
 {
   if (G_LIKELY (page))


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