Commit e87b7daa authored by Max Kellermann's avatar Max Kellermann

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
parent f2068951
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment