ssltestlib: Tell compiler we don't care about the value when we don't
authorRichard Levitte <levitte@openssl.org>
Mon, 22 Aug 2016 12:02:31 +0000 (14:02 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 22 Aug 2016 12:16:27 +0000 (14:16 +0200)
In mempacket_test_read(), we've already fetched the top value of the
stack, so when we shift the stack, we don't care for the value.  The
compiler needs to be told, or it will complain harshly when we tell it
to be picky.

Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 1c288878af42650fbda911b702ae7b551a545b1c)

test/ssltestlib.c

index 1592514a385bb195da19700c83f2363f5580581a..a52669c82a6a6488e57bae02940f7c2dd9cbea33 100644 (file)
@@ -355,7 +355,7 @@ static int mempacket_test_read(BIO *bio, char *out, int outl)
         BIO_set_retry_read(bio);
         return -1;
     }
-    sk_MEMPACKET_shift(ctx->pkts);
+    (void)sk_MEMPACKET_shift(ctx->pkts);
     ctx->currpkt++;
 
     if (outl > thispkt->len)