[Spice-devel] [PATCH] server/reds.c: declare unused variables to please gcc 4.6.0

Alon Levy alevy at redhat.com
Sun Feb 27 12:42:51 PST 2011


---
 server/reds.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 91a9512..dfc1e09 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -331,7 +331,7 @@ static ssize_t stream_read_cb(RedsStream *s, void *buf, size_t size)
 static ssize_t stream_ssl_write_cb(RedsStream *s, const void *buf, size_t size)
 {
     int return_code;
-    int ssl_error;
+    SPICE_GNUC_UNUSED int ssl_error;
 
     return_code = SSL_write(s->ssl, buf, size);
 
@@ -345,7 +345,7 @@ static ssize_t stream_ssl_write_cb(RedsStream *s, const void *buf, size_t size)
 static ssize_t stream_ssl_read_cb(RedsStream *s, void *buf, size_t size)
 {
     int return_code;
-    int ssl_error;
+    SPICE_GNUC_UNUSED int ssl_error;
 
     return_code = SSL_read(s->ssl, buf, size);
 
-- 
1.7.4.1



More information about the Spice-devel mailing list