mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-25 13:55:38 +00:00
Fix clang -Wstrict-prototypes warnings
This trivial diff gets rid of noisy warnings such as
```
./src/common/ignore.c:274:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
274 | ignore_load ()
| ^
| void
```
when building with modern clang. This is cosmetic since these functions
are actually prototyped in a header, so if the header is in scope it's
not possible to call them with an arbitrary number of arguments.
This commit is contained in:
1 parent
5af8f4ede1
commit
646ad029f0
7 files changed
+11
-11
No files matched your search
+2
-2
@@ -426,7 +426,7 @@ key_binding_is_builtin (struct key_binding *kb)
|
||||
}
|
||||
|
||||
void
|
||||
key_init ()
|
||||
key_init (void)
|
||||
{
|
||||
if (key_load_kbs () == 1)
|
||||
{
|
||||
@@ -1219,7 +1219,7 @@ key_dialog_load (GtkListStore *store)
|
||||
}
|
||||
|
||||
void
|
||||
key_dialog_show ()
|
||||
key_dialog_show (void)
|
||||
{
|
||||
GtkWidget *vbox, *box, *pane, *scroll;
|
||||
GtkWidget *view, *xtext, *delete_button;
|
||||
|
||||
@@ -336,7 +336,7 @@ ignore_stats_entry (GtkWidget * box, char *label, int value)
|
||||
}
|
||||
|
||||
void
|
||||
ignore_gui_open ()
|
||||
ignore_gui_open (void)
|
||||
{
|
||||
GtkWidget *vbox, *box, *stat_box, *frame;
|
||||
GtkWidget *view;
|
||||
|
||||
@@ -486,7 +486,7 @@ pevent_hlist_treeview_new (GtkWidget *box)
|
||||
}
|
||||
|
||||
void
|
||||
pevent_dialog_show ()
|
||||
pevent_dialog_show (void)
|
||||
{
|
||||
GtkWidget *vbox, *hbox, *wid, *pane, *preview_pane;
|
||||
XTextColor xtext_palette[XTEXT_COLS];
|
||||
|
||||
@@ -187,7 +187,7 @@ populate_cb (char *urltext, gpointer userdata)
|
||||
}
|
||||
|
||||
void
|
||||
url_opengui ()
|
||||
url_opengui (void)
|
||||
{
|
||||
GtkWidget *vbox, *hbox, *view;
|
||||
char buf[128];
|
||||
|
||||
Reference in new issue
Block a user