From 7419ff0f54fe9f1489bbc491ea78195bffe1cb76 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 6 Feb 2020 14:30:07 +0100 Subject: =?UTF-8?q?remove=20warnings:=20function=20declaration=20isn?= =?UTF-8?q?=E2=80=99t=20a=20prototype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- capplets/appearance/appearance-support.c | 2 +- capplets/appearance/appearance-themes.c | 2 +- capplets/common/mate-theme-info.c | 2 +- capplets/windows/mate-metacity-support.c | 2 +- capplets/windows/mate-window-properties.c | 6 +++--- shell/control-center.c | 2 +- typing-break/drw-timer.c | 2 +- typing-break/drw-timer.h | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/capplets/appearance/appearance-support.c b/capplets/appearance/appearance-support.c index 4f46ed97..7ea705e3 100644 --- a/capplets/appearance/appearance-support.c +++ b/capplets/appearance/appearance-support.c @@ -40,7 +40,7 @@ is_program_in_path (const char *program) } static gboolean -metacity_is_running() +metacity_is_running(void) { gboolean is_running = FALSE; gchar *current_wm = NULL; diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c index 732c079c..a1cfdd62 100644 --- a/capplets/appearance/appearance-themes.c +++ b/capplets/appearance/appearance-themes.c @@ -187,7 +187,7 @@ static void theme_changed_on_disk_cb(MateThemeCommonInfo* theme, MateThemeChange } /* Find out if the lockdown key has been set. */ -static gboolean is_locked_down() +static gboolean is_locked_down(void) { gboolean is_locked; GSettings *settings; diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c index e201492e..266bab51 100644 --- a/capplets/common/mate-theme-info.c +++ b/capplets/common/mate-theme-info.c @@ -484,7 +484,7 @@ read_icon_theme (GFile *icon_theme_uri) } static void -add_default_cursor_theme () +add_default_cursor_theme (void) { MateThemeCursorInfo *theme_info; diff --git a/capplets/windows/mate-metacity-support.c b/capplets/windows/mate-metacity-support.c index 77fd1739..2ac8c8aa 100644 --- a/capplets/windows/mate-metacity-support.c +++ b/capplets/windows/mate-metacity-support.c @@ -27,7 +27,7 @@ #define COMPOSITING_KEY "compositing-manager" void -mate_metacity_config_tool () +mate_metacity_config_tool (void) { GSettings *settings; GtkDialog *dialog; diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index ccf377ca..a4513089 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -106,7 +106,7 @@ static int n_mouse_modifiers = 0; static void reload_mouse_modifiers (void); static void -update_sensitivity () +update_sensitivity (void) { gchar *str; @@ -218,7 +218,7 @@ alt_click_radio_toggled_callback (GtkWidget *radio, } static void -set_alt_click_value () +set_alt_click_value (void) { gboolean match_found = FALSE; gchar *mouse_move_modifier; @@ -249,7 +249,7 @@ set_alt_click_value () } static void -wm_unsupported () +wm_unsupported (void) { GtkWidget *no_tool_dialog; diff --git a/shell/control-center.c b/shell/control-center.c index 20d2012b..5cf0795e 100644 --- a/shell/control-center.c +++ b/shell/control-center.c @@ -26,7 +26,7 @@ #include void handle_static_action_clicked(Tile* tile, TileEvent* event, gpointer data); -static GSList* get_actions_list(); +static GSList* get_actions_list(void); #define CONTROL_CENTER_SCHEMA "org.mate.control-center" #define CONTROL_CENTER_ACTIONS_LIST_KEY "cc-actions-list" diff --git a/typing-break/drw-timer.c b/typing-break/drw-timer.c index ace2c19f..a757911e 100644 --- a/typing-break/drw-timer.c +++ b/typing-break/drw-timer.c @@ -26,7 +26,7 @@ struct _DrwTimer GTimeVal start_time; }; -DrwTimer * drw_timer_new () +DrwTimer * drw_timer_new (void) { DrwTimer * timer = g_new0 (DrwTimer, 1); drw_timer_start (timer); diff --git a/typing-break/drw-timer.h b/typing-break/drw-timer.h index 86636b00..428d9480 100644 --- a/typing-break/drw-timer.h +++ b/typing-break/drw-timer.h @@ -34,7 +34,7 @@ */ typedef struct _DrwTimer DrwTimer; -DrwTimer * drw_timer_new (); +DrwTimer * drw_timer_new (void); void drw_timer_start (DrwTimer *timer); double drw_timer_elapsed (DrwTimer *timer); void drw_timer_destroy (DrwTimer *timer); -- cgit v1.2.1