From: tb Date: Wed, 23 Nov 2022 22:52:25 +0000 (+0000) Subject: Add void casts since gcc 4.2.1 on sparc64 doesn't like the missing return X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b507a39d6ee162d45bccceeddb9b69b93e3fb593;p=openbsd Add void casts since gcc 4.2.1 on sparc64 doesn't like the missing return checks for BIO_reset(). --- diff --git a/regress/lib/libcrypto/evp/evp_ecx_test.c b/regress/lib/libcrypto/evp/evp_ecx_test.c index e847d8de064..c0beb55425c 100644 --- a/regress/lib/libcrypto/evp/evp_ecx_test.c +++ b/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;