From 7f3326d41ca3a2a26c7eafbf9836988607905b09 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Mon, 23 Mar 2015 17:35:11 +0100 Subject: [PATCH] Fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 4.7.2 * warning: value computed is not used [-Wunused-value] * warning: unused variable ‘oss’ [-Wunused-variable] --- channels/audin/client/oss/audin_oss.c | 1 - libfreerdp/core/gateway/rdg.c | 4 ++-- libfreerdp/core/gateway/tsg.c | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/channels/audin/client/oss/audin_oss.c b/channels/audin/client/oss/audin_oss.c index b4f23c377..e8665c879 100644 --- a/channels/audin/client/oss/audin_oss.c +++ b/channels/audin/client/oss/audin_oss.c @@ -93,7 +93,6 @@ static int audin_oss_get_format(audinFormat *format) { static BOOL audin_oss_format_supported(IAudinDevice *device, audinFormat *format) { int req_fmt = 0; - AudinOSSDevice *oss = (AudinOSSDevice*)device; if (device == NULL || format == NULL) return FALSE; diff --git a/libfreerdp/core/gateway/rdg.c b/libfreerdp/core/gateway/rdg.c index a7d4a527b..4f8627c20 100644 --- a/libfreerdp/core/gateway/rdg.c +++ b/libfreerdp/core/gateway/rdg.c @@ -1345,8 +1345,8 @@ static long rdg_bio_ctrl(BIO* bio, int cmd, long arg1, void* arg2) if (cmd == BIO_CTRL_FLUSH) { - BIO_flush(tlsOut->bio); - BIO_flush(tlsIn->bio); + (void)BIO_flush(tlsOut->bio); + (void)BIO_flush(tlsIn->bio); status = 1; } else if (cmd == BIO_C_GET_EVENT) diff --git a/libfreerdp/core/gateway/tsg.c b/libfreerdp/core/gateway/tsg.c index 07e33349c..7af675b8e 100644 --- a/libfreerdp/core/gateway/tsg.c +++ b/libfreerdp/core/gateway/tsg.c @@ -1975,8 +1975,8 @@ static long transport_bio_tsg_ctrl(BIO* bio, int cmd, long arg1, void* arg2) if (cmd == BIO_CTRL_FLUSH) { - BIO_flush(inChannel->tls->bio); - BIO_flush(outChannel->tls->bio); + (void)BIO_flush(inChannel->tls->bio); + (void)BIO_flush(outChannel->tls->bio); status = 1; } else if (cmd == BIO_C_GET_EVENT)