diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2022-10-26 02:58:05 -0500 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2022-10-26 02:58:05 -0500 |
commit | 8ee0429e6a76216fb0afb8702643f757c6120f45 (patch) | |
tree | 57eaf2e1c24624a3ffbe991a9837bee01227b163 /finch/plugins | |
parent | 7cf9e3561136146b8255e44d0db5e8537cf328c2 (diff) | |
download | pidgin-8ee0429e6a76216fb0afb8702643f757c6120f45.tar.gz |
Remove C99-obsoleted constructs
See [this development thread for a future Fedora change](https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/) or [the proposed change page](https://fedoraproject.org/wiki/Changes/PortingToModernC). These may be made stronger errors in GCC 14.
Testing Done:
Configured with `-Dc_args='-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition'` and compiled.
Reviewed at https://reviews.imfreedom.org/r/1974/
Diffstat (limited to 'finch/plugins')
-rw-r--r-- | finch/plugins/grouping/grouping.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/finch/plugins/grouping/grouping.c b/finch/plugins/grouping/grouping.c index 689ee0f06a..219710490b 100644 --- a/finch/plugins/grouping/grouping.c +++ b/finch/plugins/grouping/grouping.c @@ -66,7 +66,8 @@ G_DEFINE_DYNAMIC_TYPE(FinchGroupingNode, finch_grouping_node, */ static FinchGroupingNode *online, *offline; -static gboolean on_offline_init() +static gboolean +on_offline_init(void) { GntTree *tree = finch_blist_get_tree(); @@ -151,7 +152,8 @@ static FinchBlistManager on_offline = * Meebo-like Grouping. */ static FinchGroupingNode meebo; -static gboolean meebo_init() +static gboolean +meebo_init(void) { GntTree *tree = finch_blist_get_tree(); if (!g_list_find(gnt_tree_get_rows(tree), &meebo)) { @@ -187,14 +189,16 @@ static FinchBlistManager meebo_group = /** * No Grouping. */ -static gboolean no_group_init() +static gboolean +no_group_init(void) { GntTree *tree = finch_blist_get_tree(); g_object_set(G_OBJECT(tree), "expander-level", 0, NULL); return TRUE; } -static gboolean no_group_uninit() +static gboolean +no_group_uninit(void) { GntTree *tree = finch_blist_get_tree(); g_object_set(G_OBJECT(tree), "expander-level", 1, NULL); |