aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/soup_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-01-29 14:45:59 +0100
committerMax Kellermann <max@duempel.org>2012-01-29 14:46:05 +0100
commite87b7daab56831a5b7f69a94db75625f861d7aab (patch)
tree25ae616307ec626b454a2768a7c02ae59b21d2a0 /src/input/soup_input_plugin.c
parentf20689519dfb9a4fffa3fbe4862ff12fb17639eb (diff)
downloadmpd-e87b7daab56831a5b7f69a94db75625f861d7aab.tar.gz
mpd-e87b7daab56831a5b7f69a94db75625f861d7aab.tar.xz
mpd-e87b7daab56831a5b7f69a94db75625f861d7aab.zip
input/soup: use #pragma only with gcc 4.6+
It seems gcc 4.5 does not allow #pragma within function: src/input/soup_input_plugin.c:284:9: error: #pragma GCC diagnostic not allowed inside functions
Diffstat (limited to 'src/input/soup_input_plugin.c')
-rw-r--r--src/input/soup_input_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c
index 9b3b03735..fc903b48c 100644
--- a/src/input/soup_input_plugin.c
+++ b/src/input/soup_input_plugin.c
@@ -280,7 +280,7 @@ input_soup_open(const char *uri,
s->current_consumed = 0;
s->total_buffered = 0;
-#if GCC_CHECK_VERSION(4,5)
+#if GCC_CHECK_VERSION(4,6)
#pragma GCC diagnostic push
/* the libsoup macro SOUP_METHOD_GET discards the "const"
attribute of the g_intern_static_string() return value;
@@ -290,7 +290,7 @@ input_soup_open(const char *uri,
s->msg = soup_message_new(SOUP_METHOD_GET, uri);
-#if GCC_CHECK_VERSION(4,5)
+#if GCC_CHECK_VERSION(4,6)
#pragma GCC diagnostic pop
#endif