mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
e96f8f519c
commit
43602e2d8a
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ do_get (SoupMessage * msg, const char *path)
|
||||||
soup_message_headers_append (msg->response_headers, "Location", redir_uri);
|
soup_message_headers_append (msg->response_headers, "Location", redir_uri);
|
||||||
g_free (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;
|
goto leave;
|
||||||
|
|
||||||
if (msg->method == SOUP_METHOD_GET) {
|
if (msg->method == SOUP_METHOD_GET) {
|
||||||
|
|
Loading…
Reference in a new issue