Fix compiler warnings

gcc 4.7.2
* warning: value computed is not used [-Wunused-value]
* warning: unused variable ‘oss’ [-Wunused-variable]
This commit is contained in:
Bernhard Miklautz 2015-03-23 17:35:11 +01:00
parent 3c7662517c
commit 7f3326d41c
3 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)