From ffa635fee01ea832b956700c3d7ab62a80b8b6f8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 07 Oct 2017 15:41:01 -0400 Subject: s/__attribute__((unused))/G_GNUC_UNUSED/ And rewrap lines. G_GNUC_UNUSED expands to nothing on compilers other than GCC 2.4+. --- (limited to 'src/web-settings.c') diff --git a/src/web-settings.c b/src/web-settings.c index 7e3c713..e8ed669 100644 --- a/src/web-settings.c +++ b/src/web-settings.c @@ -153,7 +153,7 @@ static struct mapping mappings[] = { static GHashTable *mappings_table = NULL; static void -wks_bool_cb(MqConfig __attribute__((unused)) *config, const gchar *name, +wks_bool_cb(MqConfig G_GNUC_UNUSED *config, const gchar *name, const gboolean value, WebKitSettings *wk_settings) { GValue g_value = G_VALUE_INIT; @@ -165,7 +165,7 @@ wks_bool_cb(MqConfig __attribute__((unused)) *config, const gchar *name, } static void -wks_bool_n_cb(MqConfig __attribute__((unused)) *config, const gchar *name, +wks_bool_n_cb(MqConfig G_GNUC_UNUSED *config, const gchar *name, const gboolean value, WebKitSettings *wk_settings) { GValue g_value = G_VALUE_INIT; @@ -177,7 +177,7 @@ wks_bool_n_cb(MqConfig __attribute__((unused)) *config, const gchar *name, } static void -wks_int_cb(MqConfig __attribute__((unused)) *config, const gchar *name, +wks_int_cb(MqConfig G_GNUC_UNUSED *config, const gchar *name, const gint value, WebKitSettings *wk_settings) { GValue g_value = G_VALUE_INIT; @@ -189,7 +189,7 @@ wks_int_cb(MqConfig __attribute__((unused)) *config, const gchar *name, } static void -wks_str_cb(MqConfig __attribute__((unused)) *config, const gchar *name, +wks_str_cb(MqConfig G_GNUC_UNUSED *config, const gchar *name, const gchar *value, WebKitSettings *wk_settings) { GValue g_value = G_VALUE_INIT; @@ -201,8 +201,8 @@ wks_str_cb(MqConfig __attribute__((unused)) *config, const gchar *name, } static void -wkwc_spell_checking_enabled_cb(MqConfig __attribute__((unused)) *config, - const gchar __attribute__((unused)) *name, const gboolean value, +wkwc_spell_checking_enabled_cb(MqConfig G_GNUC_UNUSED *config, + const gchar G_GNUC_UNUSED *name, const gboolean value, WebKitWebContext *wk_web_context) { webkit_web_context_set_spell_checking_enabled(wk_web_context, value); @@ -210,8 +210,7 @@ wkwc_spell_checking_enabled_cb(MqConfig __attribute__((unused)) *config, static void wkwc_spell_checking_languages_cb(MqConfig *config, const gchar *name, - const gchar __attribute__((unused)) *value, - WebKitWebContext *wk_web_context) + const gchar G_GNUC_UNUSED *value, WebKitWebContext *wk_web_context) { webkit_web_context_set_spell_checking_languages(wk_web_context, (const gchar * const *) mq_config_get_string_list(config, @@ -220,8 +219,7 @@ wkwc_spell_checking_languages_cb(MqConfig *config, const gchar *name, static void wkwc_preferred_languages_cb(MqConfig *config, const gchar *name, - const gchar __attribute__((unused)) *value, - WebKitWebContext *wk_web_context) + const gchar G_GNUC_UNUSED *value, WebKitWebContext *wk_web_context) { webkit_web_context_set_preferred_languages(wk_web_context, (const gchar * const *) mq_config_get_string_list(config, @@ -229,8 +227,8 @@ wkwc_preferred_languages_cb(MqConfig *config, const gchar *name, } static void -wkcm_accept_policy_cb(MqConfig __attribute__((unused)) *config, - const gchar __attribute__((unused)) *name, const gchar *value, +wkcm_accept_policy_cb(MqConfig G_GNUC_UNUSED *config, + const gchar G_GNUC_UNUSED *name, const gchar *value, WebKitCookieManager *wk_cookie_manager) { if (g_strcmp0(value, "always") == 0) { -- cgit v0.9.1