From: Richard Levitte Date: Mon, 22 Aug 2016 12:02:31 +0000 (+0200) Subject: ssltestlib: Tell compiler we don't care about the value when we don't X-Git-Tag: OpenSSL_1_0_2i~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91dc6054582d1b7f263a67527ebbe2c050d178fc;p=oweals%2Fopenssl.git ssltestlib: Tell compiler we don't care about the value when we don't 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 (cherry picked from commit 1c288878af42650fbda911b702ae7b551a545b1c) --- diff --git a/test/ssltestlib.c b/test/ssltestlib.c index 1592514a38..a52669c82a 100644 --- a/test/ssltestlib.c +++ b/test/ssltestlib.c @@ -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)