Thu, 14 Jan 2021 21:20:10 -0600
Fix some warnings about missing braces by moving to struct initializers
Testing Done:
Compiled locally verified the warnings were no longer present.
Reviewed at https://reviews.imfreedom.org/r/427/
| finch/gntaccount.c | file | annotate | diff | comparison | revisions | |
| pidgin/gtkaccount.c | file | annotate | diff | comparison | revisions |
--- a/finch/gntaccount.c Thu Jan 14 20:34:32 2021 -0600 +++ b/finch/gntaccount.c Thu Jan 14 21:20:10 2021 -0600 @@ -1148,16 +1148,10 @@ static PurpleAccountUiOps ui_ops = { - notify_added, - NULL, - request_add, - finch_request_authorize, - finch_request_close, - NULL, - NULL, - NULL, - NULL, - NULL, NULL, NULL, NULL + .notify_added = notify_added, + .request_add = request_add, + .request_authorize = finch_request_authorize, + .close_account_request = finch_request_close, }; PurpleAccountUiOps *finch_accounts_get_ui_ops()
--- a/pidgin/gtkaccount.c Thu Jan 14 20:34:32 2021 -0600 +++ b/pidgin/gtkaccount.c Thu Jan 14 21:20:10 2021 -0600 @@ -2791,16 +2791,10 @@ static PurpleAccountUiOps ui_ops = { - pidgin_accounts_notify_added, - NULL, - pidgin_accounts_request_add, - pidgin_accounts_request_authorization, - pidgin_accounts_request_close, - NULL, - NULL, - NULL, - NULL, - NULL, NULL, NULL, NULL + .notify_added = pidgin_accounts_notify_added, + .request_add = pidgin_accounts_request_add, + .request_authorize = pidgin_accounts_request_authorization, + .close_account_request = pidgin_accounts_request_close, }; PurpleAccountUiOps *