tests: souphttpsrc: add explicit cast to silence warning

Silencing this warning:

elements/souphttpsrc.c:533:14: error: comparison between ‘SoupKnownStatusCode’ and ‘enum <anonymous>’ [-Werror=enum-compare]
   if (status != SOUP_STATUS_OK && !send_error_doc)

With gcc 4.8.2 (debian)
This commit is contained in:
Thiago Santos 2013-10-31 13:20:41 -03:00
parent e96f8f519c
commit 43602e2d8a

View file

@ -530,7 +530,7 @@ do_get (SoupMessage * msg, const char *path)
soup_message_headers_append (msg->response_headers, "Location", redir_uri);
g_free (redir_uri);
}
if (status != SOUP_STATUS_OK && !send_error_doc)
if (status != (SoupKnownStatusCode) SOUP_STATUS_OK && !send_error_doc)
goto leave;
if (msg->method == SOUP_METHOD_GET) {