diff options
author | zhuyaliang <[email protected]> | 2021-07-19 02:18:16 +0800 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2021-07-19 15:16:44 -0400 |
commit | f9d1c221023e76e5a84bb4f88af4b05494054dd4 (patch) | |
tree | 6337ba65fad8650ef7633ec344ae9bf7702a0ac7 /capplets | |
parent | 15f1a9f8d57cca42e2adb8ce8c825b1d1c1328a7 (diff) | |
download | mate-control-center-f9d1c221023e76e5a84bb4f88af4b05494054dd4.tar.bz2 mate-control-center-f9d1c221023e76e5a84bb4f88af4b05494054dd4.tar.xz |
Fix compilation warning
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/about-me/mate-about-me-password.c | 3 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkb.c | 2 | ||||
-rw-r--r-- | capplets/keyboard/mate-keyboard-properties-xkbltadd.c | 17 |
3 files changed, 5 insertions, 17 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index d9794cf1..31f92b93 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -42,6 +42,7 @@ #endif #include "capplet-util.h" +#include "mate-about-me-password.h" /* Passwd states */ typedef enum { @@ -90,7 +91,7 @@ typedef struct { */ #define PASSDLG_ERROR (mate_about_me_password_error_quark()) -GQuark mate_about_me_password_error_quark(void) +static GQuark mate_about_me_password_error_quark(void) { static GQuark q = 0; diff --git a/capplets/keyboard/mate-keyboard-properties-xkb.c b/capplets/keyboard/mate-keyboard-properties-xkb.c index 7ccc0273..11833c70 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkb.c +++ b/capplets/keyboard/mate-keyboard-properties-xkb.c @@ -253,7 +253,7 @@ enable_disable_restoring (GtkBuilder * dialog) gtk_widget_set_sensitive (WID ("xkb_reset_to_defaults"), enable); } -void +static void xkb_save_gslist_as_strv (gchar *schema, gchar *key, GSList *list) { GSettings *settings; diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c index 8499314a..2d1e5dd6 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c @@ -366,20 +366,7 @@ xkb_layout_chooser_available_layouts_fill (GtkBuilder * chooser_dialog); } -GSList* -xkb_layout_gslist_from_strv (gchar **array) -{ - GSList *list = NULL; - gint i; - if (array != NULL) { - for (i = 0; array[i]; i++) { - list = g_slist_append (list, g_strdup (array[i])); - } - } - return list; -} - -gchar ** +static gchar ** xkb_layout_strv_from_gslist (GSList *list) { GArray *array; @@ -393,7 +380,7 @@ xkb_layout_strv_from_gslist (GSList *list) -void +static void xkl_layout_chooser_add_default_switcher_if_necessary (GSList * layouts_list) { |