From 0f88328460f3394844d3b50ae33110ce97a7a2f8 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 18 Sep 2020 14:41:04 +0000 Subject: fix "warning: value computed is not used" Add a cast to tell gcc 4.2.1 that the return value is deliberately ignored. This makes the test compile and pass on sparc64. --- src/regress/lib/libcrypto/pem/x509_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regress/lib/libcrypto/pem/x509_info.c b/src/regress/lib/libcrypto/pem/x509_info.c index e6b5388a71..8e223e2070 100644 --- a/src/regress/lib/libcrypto/pem/x509_info.c +++ b/src/regress/lib/libcrypto/pem/x509_info.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_info.c,v 1.1 2020/07/23 17:15:35 schwarze Exp $ */ +/* $OpenBSD: x509_info.c,v 1.2 2020/09/18 14:41:04 tb Exp $ */ /* * Copyright (c) 2020 Ingo Schwarze * @@ -163,7 +163,7 @@ main(void) warnx("real + bogus input changed stack size from 1 to %d", num); while (sk_X509_INFO_num(skin) > 1) - sk_X509_INFO_pop(skin); + (void)sk_X509_INFO_pop(skin); errcount++; } if (sk_X509_INFO_value(skin, 0) != info0) -- cgit v1.2.3-55-g6feb