[libsoup] Appease some gcc 4.5 warnings
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Appease some gcc 4.5 warnings
- Date: Thu, 14 Oct 2010 20:00:30 +0000 (UTC)
commit 5abacb30c7a067b3d04c97959ab1b466bc39de97
Author: Dan Winship <danw gnome org>
Date: Thu Oct 14 16:00:05 2010 -0400
Appease some gcc 4.5 warnings
libsoup/soup-message-body.c | 2 +-
tests/ssl-test.c | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libsoup/soup-message-body.c b/libsoup/soup-message-body.c
index a5974d0..1177030 100644
--- a/libsoup/soup-message-body.c
+++ b/libsoup/soup-message-body.c
@@ -222,7 +222,7 @@ soup_buffer_get_owner (SoupBuffer *buffer)
{
SoupBufferPrivate *priv = (SoupBufferPrivate *)buffer;
- g_return_val_if_fail (priv->use == SOUP_MEMORY_OWNED, NULL);
+ g_return_val_if_fail ((int)priv->use == (int)SOUP_MEMORY_OWNED, NULL);
return priv->owner;
}
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index f071e12..ce2237a 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -225,6 +225,7 @@ main (int argc, char **argv)
SoupSocket *sock;
gsize n, total;
SoupSocketIOStatus status;
+ int connect_status;
GError *error = NULL;
g_thread_init (NULL);
@@ -290,10 +291,10 @@ main (int argc, char **argv)
SOUP_SOCKET_SSL_CREDENTIALS, creds,
NULL);
g_object_unref (addr);
- status = soup_socket_connect_sync (sock, NULL);
- if (status != SOUP_STATUS_OK) {
+ connect_status = soup_socket_connect_sync (sock, NULL);
+ if (connect_status != SOUP_STATUS_OK) {
g_error ("Could not create client socket: %s",
- soup_status_get_phrase (status));
+ soup_status_get_phrase (connect_status));
}
soup_socket_start_ssl (sock, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]