diff options
author | Max Kellermann <max@duempel.org> | 2011-12-12 10:15:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-12-12 10:15:04 +0100 |
commit | 744d729dab2a37dd913e3e9aff2141ee7aa252e5 (patch) | |
tree | 75ef072eca85c4c7611d06d1576fc5bf13e332d2 /src | |
parent | 71b5e431539b0738be453fd45b1605608d0f038d (diff) | |
download | mpd-744d729dab2a37dd913e3e9aff2141ee7aa252e5.tar.gz mpd-744d729dab2a37dd913e3e9aff2141ee7aa252e5.tar.xz mpd-744d729dab2a37dd913e3e9aff2141ee7aa252e5.zip |
input/soup: disable -Wcast-qual to work around libsoup header problem
Diffstat (limited to 'src')
-rw-r--r-- | src/input/soup_input_plugin.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c index 52dcec427..9b3b03735 100644 --- a/src/input/soup_input_plugin.c +++ b/src/input/soup_input_plugin.c @@ -280,7 +280,20 @@ input_soup_open(const char *uri, s->current_consumed = 0; s->total_buffered = 0; +#if GCC_CHECK_VERSION(4,5) +#pragma GCC diagnostic push + /* the libsoup macro SOUP_METHOD_GET discards the "const" + attribute of the g_intern_static_string() return value; + don't make the gcc warning fatal: */ +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + s->msg = soup_message_new(SOUP_METHOD_GET, uri); + +#if GCC_CHECK_VERSION(4,5) +#pragma GCC diagnostic pop +#endif + soup_message_set_flags(s->msg, SOUP_MESSAGE_NO_REDIRECT); soup_message_headers_append(s->msg->request_headers, "User-Agent", |