diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist/AsxPlaylistPlugin.cxx | 12 | ||||
-rw-r--r-- | src/playlist/RssPlaylistPlugin.cxx | 12 | ||||
-rw-r--r-- | src/playlist/XspfPlaylistPlugin.cxx | 16 | ||||
-rw-r--r-- | src/playlist_error.h | 4 |
4 files changed, 23 insertions, 21 deletions
diff --git a/src/playlist/AsxPlaylistPlugin.cxx b/src/playlist/AsxPlaylistPlugin.cxx index be94f81ff..b2287fcaf 100644 --- a/src/playlist/AsxPlaylistPlugin.cxx +++ b/src/playlist/AsxPlaylistPlugin.cxx @@ -79,11 +79,11 @@ get_attribute(const gchar **attribute_names, const gchar **attribute_values, } static void -asx_start_element(G_GNUC_UNUSED GMarkupParseContext *context, +asx_start_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { AsxParser *parser = (AsxParser *)user_data; @@ -130,9 +130,9 @@ asx_start_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -asx_end_element(G_GNUC_UNUSED GMarkupParseContext *context, +asx_end_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { AsxParser *parser = (AsxParser *)user_data; @@ -156,9 +156,9 @@ asx_end_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -asx_text(G_GNUC_UNUSED GMarkupParseContext *context, +asx_text(gcc_unused GMarkupParseContext *context, const gchar *text, gsize text_len, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { AsxParser *parser = (AsxParser *)user_data; diff --git a/src/playlist/RssPlaylistPlugin.cxx b/src/playlist/RssPlaylistPlugin.cxx index e8f279bb2..df0f6bca3 100644 --- a/src/playlist/RssPlaylistPlugin.cxx +++ b/src/playlist/RssPlaylistPlugin.cxx @@ -78,11 +78,11 @@ get_attribute(const gchar **attribute_names, const gchar **attribute_values, } static void -rss_start_element(G_GNUC_UNUSED GMarkupParseContext *context, +rss_start_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { RssParser *parser = (RssParser *)user_data; @@ -127,9 +127,9 @@ rss_start_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -rss_end_element(G_GNUC_UNUSED GMarkupParseContext *context, +rss_end_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { RssParser *parser = (RssParser *)user_data; @@ -153,9 +153,9 @@ rss_end_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -rss_text(G_GNUC_UNUSED GMarkupParseContext *context, +rss_text(gcc_unused GMarkupParseContext *context, const gchar *text, gsize text_len, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { RssParser *parser = (RssParser *)user_data; diff --git a/src/playlist/XspfPlaylistPlugin.cxx b/src/playlist/XspfPlaylistPlugin.cxx index cb3d19033..bf282eac9 100644 --- a/src/playlist/XspfPlaylistPlugin.cxx +++ b/src/playlist/XspfPlaylistPlugin.cxx @@ -67,11 +67,11 @@ struct XspfParser { }; static void -xspf_start_element(G_GNUC_UNUSED GMarkupParseContext *context, +xspf_start_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, - G_GNUC_UNUSED const gchar **attribute_names, - G_GNUC_UNUSED const gchar **attribute_values, - gpointer user_data, G_GNUC_UNUSED GError **error) + gcc_unused const gchar **attribute_names, + gcc_unused const gchar **attribute_values, + gpointer user_data, gcc_unused GError **error) { XspfParser *parser = (XspfParser *)user_data; @@ -121,9 +121,9 @@ xspf_start_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -xspf_end_element(G_GNUC_UNUSED GMarkupParseContext *context, +xspf_end_element(gcc_unused GMarkupParseContext *context, const gchar *element_name, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { XspfParser *parser = (XspfParser *)user_data; @@ -161,9 +161,9 @@ xspf_end_element(G_GNUC_UNUSED GMarkupParseContext *context, } static void -xspf_text(G_GNUC_UNUSED GMarkupParseContext *context, +xspf_text(gcc_unused GMarkupParseContext *context, const gchar *text, gsize text_len, - gpointer user_data, G_GNUC_UNUSED GError **error) + gpointer user_data, gcc_unused GError **error) { XspfParser *parser = (XspfParser *)user_data; diff --git a/src/playlist_error.h b/src/playlist_error.h index ad9c62cf1..9871a0365 100644 --- a/src/playlist_error.h +++ b/src/playlist_error.h @@ -20,6 +20,8 @@ #ifndef MPD_PLAYLIST_ERROR_H #define MPD_PLAYLIST_ERROR_H +#include "gcc.h" + #include <glib.h> enum playlist_result { @@ -39,7 +41,7 @@ enum playlist_result { /** * Quark for GError.domain; the code is an enum #playlist_result. */ -G_GNUC_CONST +gcc_const static inline GQuark playlist_quark(void) { |