From e87b7daab56831a5b7f69a94db75625f861d7aab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 29 Jan 2012 14:45:59 +0100 Subject: 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 --- src/input/soup_input_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c index 9b3b0373..fc903b48 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 -- cgit v1.2.3