summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-09-18 14:41:05 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-09-18 14:41:05 +0000
commit8fb903c5520cf2411f2fc33a0746ac2be17824d4 (patch)
treefa6dda3f9126b31ef49420c0d791d6533d5ccf8b /regress/lib
parent576b3c2e695eee6fefafe33f1631c0282107c569 (diff)
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.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/pem/x509_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/pem/x509_info.c b/regress/lib/libcrypto/pem/x509_info.c
index e6b5388a710..8e223e2070d 100644
--- a/regress/lib/libcrypto/pem/x509_info.c
+++ b/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 <schwarze@openbsd.org>
*
@@ -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)