From cfc8789bbebce5f8164aea5a38160511984616df Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 23 Nov 2022 22:52:25 +0000 Subject: Add void casts since gcc 4.2.1 on sparc64 doesn't like the missing return checks for BIO_reset(). --- src/regress/lib/libcrypto/evp/evp_ecx_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/evp/evp_ecx_test.c b/src/regress/lib/libcrypto/evp/evp_ecx_test.c index e847d8de06..c0beb55425 100644 --- a/src/regress/lib/libcrypto/evp/evp_ecx_test.c +++ b/src/regress/lib/libcrypto/evp/evp_ecx_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_ecx_test.c,v 1.3 2022/11/23 07:25:01 tb Exp $ */ +/* $OpenBSD: evp_ecx_test.c,v 1.4 2022/11/23 22:52:25 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -337,7 +337,7 @@ ecx_ed25519_raw_key_test(void) goto failure; } - BIO_reset(bio); + (void)BIO_reset(bio); if (!PEM_write_bio_PUBKEY(bio, pkey)) { fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); goto failure; @@ -361,7 +361,7 @@ ecx_ed25519_raw_key_test(void) fprintf(stderr, "FAIL: PKEY from raw public key failed"); goto failure; } - BIO_reset(bio); + (void)BIO_reset(bio); if (!PEM_write_bio_PUBKEY(bio, pkey)) { fprintf(stderr, "FAIL: failed to write ED25519 public to PEM\n"); goto failure; @@ -769,7 +769,7 @@ ecx_x25519_raw_key_test(void) goto failure; } - BIO_reset(bio); + (void)BIO_reset(bio); if (!PEM_write_bio_PUBKEY(bio, pkey)) { fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); goto failure; @@ -791,7 +791,7 @@ ecx_x25519_raw_key_test(void) fprintf(stderr, "FAIL: PKEY from raw public key failed"); goto failure; } - BIO_reset(bio); + (void)BIO_reset(bio); if (!PEM_write_bio_PUBKEY(bio, pkey)) { fprintf(stderr, "FAIL: failed to write X25519 public to PEM\n"); goto failure; -- cgit v1.2.3-55-g6feb