From aab881fda26578edb5c17a705069e55e8c612f29 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Thu, 18 Feb 2016 08:57:22 -0500 Subject: Fix strict prototype warnings --- src/common/dcc.c | 2 +- src/common/fe.h | 2 +- src/common/plugin-identd.h | 2 +- src/common/plugin.c | 2 +- src/common/text.c | 6 +++--- src/common/text.h | 4 ++-- src/fe-gtk/fkeys.c | 4 ++-- src/fe-gtk/ignoregui.c | 2 +- src/fe-gtk/menu.c | 4 ++-- src/fe-gtk/plugin-tray.c | 4 ++-- src/fe-gtk/sexy-spell-entry.c | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/common/dcc.c b/src/common/dcc.c index a7ed0988..6c5b117e 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -83,7 +83,7 @@ static gboolean dcc_send_data (GIOChannel *, GIOCondition, struct DCC *); static gboolean dcc_read (GIOChannel *, GIOCondition, struct DCC *); static gboolean dcc_read_ack (GIOChannel *source, GIOCondition condition, struct DCC *dcc); -static int new_id() +static int new_id(void) { static int id = 0; if (id == 0) diff --git a/src/common/fe.h b/src/common/fe.h index a3bd2afa..209abb00 100644 --- a/src/common/fe.h +++ b/src/common/fe.h @@ -179,6 +179,6 @@ typedef enum void fe_tray_set_icon (feicon icon); void fe_tray_set_tooltip (const char *text); void fe_open_chan_list (server *serv, char *filter, int do_refresh); -const char *fe_get_default_font (); +const char *fe_get_default_font (void); #endif diff --git a/src/common/plugin-identd.h b/src/common/plugin-identd.h index 5efc2600..6aee9f6d 100644 --- a/src/common/plugin-identd.h +++ b/src/common/plugin-identd.h @@ -23,6 +23,6 @@ int identd_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg); -int identd_plugin_deinit (); +int identd_plugin_deinit (void); #endif diff --git a/src/common/plugin.c b/src/common/plugin.c index a397c878..6d362ffb 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -427,7 +427,7 @@ plugin_auto_load_cb (char *filename) } static char * -plugin_get_libdir () +plugin_get_libdir (void) { const char *libdir; diff --git a/src/common/text.c b/src/common/text.c index c2db9254..2f20d171 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -1478,7 +1478,7 @@ static char * const pevt_discon_help[] = { #include "textevents.h" static void -pevent_load_defaults () +pevent_load_defaults (void) { int i; @@ -1495,7 +1495,7 @@ pevent_load_defaults () } void -pevent_make_pntevts () +pevent_make_pntevts (void) { int i, m; char out[1024]; @@ -1637,7 +1637,7 @@ pevent_load (char *filename) } static void -pevent_check_all_loaded () +pevent_check_all_loaded (void) { int i; diff --git a/src/common/text.h b/src/common/text.h index 28fc0c0d..485b7ce8 100644 --- a/src/common/text.h +++ b/src/common/text.h @@ -69,7 +69,7 @@ extern const gchar* arbitrary_encoding_fallback_string; void sound_play (const char *file, gboolean quiet); void sound_play_event (int i); void sound_beep (session *); -void sound_load (); -void sound_save (); +void sound_load (void); +void sound_save (void); #endif diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index af0e149a..fe8f3e6c 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -94,8 +94,8 @@ struct gcomp_data int elen; }; -static int key_load_kbs (); -static int key_save_kbs (); +static int key_load_kbs (void); +static int key_save_kbs (void); static int key_action_handle_command (GtkWidget * wid, GdkEventKey * evt, char *d1, char *d2, struct session *sess); diff --git a/src/fe-gtk/ignoregui.c b/src/fe-gtk/ignoregui.c index a30b8cd1..08d837ec 100644 --- a/src/fe-gtk/ignoregui.c +++ b/src/fe-gtk/ignoregui.c @@ -306,7 +306,7 @@ ignore_new_entry_clicked (GtkWidget * wid, struct session *sess) } static void -close_ignore_gui_callback () +close_ignore_gui_callback (void) { ignore_save (); ignorewin = 0; diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c index 902af92e..046e6afe 100644 --- a/src/fe-gtk/menu.c +++ b/src/fe-gtk/menu.c @@ -375,7 +375,7 @@ menu_quick_sub (char *name, GtkWidget *menu, GtkWidget **sub_item_ret, int flags } static GtkWidget * -menu_quick_endsub () +menu_quick_endsub (void) { /* Just delete the first element in the linked list pointed to by first */ if (submenu_list) @@ -1259,7 +1259,7 @@ menu_quit (GtkWidget * wid, gpointer none) } static void -menu_search () +menu_search (void) { mg_search_toggle (current_sess); } diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index 077a7c63..ef70b032 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -80,7 +80,7 @@ static int tray_restore_timer = 0; void tray_apply_setup (void); -static gboolean tray_menu_try_restore (); +static gboolean tray_menu_try_restore (void); static void tray_cleanup (void); static void tray_init (void); @@ -391,7 +391,7 @@ tray_menu_notify_cb (GObject *tray, GParamSpec *pspec, gpointer user_data) } static gboolean -tray_menu_try_restore () +tray_menu_try_restore (void) { tray_cleanup(); tray_init(); diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index f57c7f41..45bc132c 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -155,7 +155,7 @@ spell_accumulator(GSignalInvocationHint *hint, GValue *return_accu, const GValue } static void -initialize_enchant () +initialize_enchant (void) { GModule *enchant; gpointer funcptr; -- cgit 1.4.1