diff options
author | tb <> | 2020-09-18 14:41:04 +0000 |
---|---|---|
committer | tb <> | 2020-09-18 14:41:04 +0000 |
commit | 0f88328460f3394844d3b50ae33110ce97a7a2f8 (patch) | |
tree | c77154b8578688d360c2dd5b1a3c4a6c0f277aa4 /src/regress/lib | |
parent | 68d2c35266936265b7d1b2fced83f9dde685f0d9 (diff) | |
download | openbsd-0f88328460f3394844d3b50ae33110ce97a7a2f8.tar.gz openbsd-0f88328460f3394844d3b50ae33110ce97a7a2f8.tar.bz2 openbsd-0f88328460f3394844d3b50ae33110ce97a7a2f8.zip |
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 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libcrypto/pem/x509_info.c | 4 |
1 files 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 @@ | |||
1 | /* $OpenBSD: x509_info.c,v 1.1 2020/07/23 17:15:35 schwarze Exp $ */ | 1 | /* $OpenBSD: x509_info.c,v 1.2 2020/09/18 14:41:04 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org> | 3 | * Copyright (c) 2020 Ingo Schwarze <schwarze@openbsd.org> |
4 | * | 4 | * |
@@ -163,7 +163,7 @@ main(void) | |||
163 | warnx("real + bogus input changed stack size from 1 to %d", | 163 | warnx("real + bogus input changed stack size from 1 to %d", |
164 | num); | 164 | num); |
165 | while (sk_X509_INFO_num(skin) > 1) | 165 | while (sk_X509_INFO_num(skin) > 1) |
166 | sk_X509_INFO_pop(skin); | 166 | (void)sk_X509_INFO_pop(skin); |
167 | errcount++; | 167 | errcount++; |
168 | } | 168 | } |
169 | if (sk_X509_INFO_value(skin, 0) != info0) | 169 | if (sk_X509_INFO_value(skin, 0) != info0) |