Fri, 07 Jul 2017 11:49:06 +0300
Replace "do {" and "} while (0)" with G_STMT_START and G_STMT_END
| libpurple/core.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/core.c Fri Jun 30 17:36:48 2017 +0300 +++ b/libpurple/core.c Fri Jul 07 11:49:06 2017 +0300 @@ -263,7 +263,7 @@ purple_prefs_uninit(); purple_plugins_uninit(); - static_proto_unload(); + static_proto_unload(); purple_protocols_uninit(); #ifdef HAVE_DBUS @@ -423,7 +423,8 @@ return ops->get_ui_info(); } -#define MIGRATE_TO_XDG_DIR(xdg_base_dir, legacy_path) do { \ +#define MIGRATE_TO_XDG_DIR(xdg_base_dir, legacy_path) \ + G_STMT_START { \ gboolean migrate_res; \ \ migrate_res = purple_move_to_xdg_base_dir(xdg_base_dir, legacy_path); \ @@ -432,7 +433,7 @@ legacy_path, xdg_base_dir); \ return FALSE; \ } \ - } while (0) + } G_STMT_END gboolean purple_core_migrate_to_xdg_base_dirs(void)