From f6b66730a3c6c11a46d8cfb7d8e24644503149ae Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 28 Apr 2023 21:40:14 +0000 Subject: Mark OpenSSLDie() as __dead This tells gcc that OPENSSL_assert() will not return and thus avoids a silly warning that triggers scary gentoo QA warnings. From claudio --- src/lib/libcrypto/crypto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 066f6246f6..5b1618ac9b 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.h,v 1.58 2022/12/26 07:18:50 jmc Exp $ */ +/* $OpenBSD: crypto.h,v 1.59 2023/04/28 21:40:14 tb Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -488,7 +488,7 @@ typedef int *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); int CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb); /* die if we have to */ -void OpenSSLDie(const char *file, int line, const char *assertion); +__dead void OpenSSLDie(const char *file, int line, const char *assertion); #define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1)) uint64_t OPENSSL_cpu_caps(void); -- cgit v1.2.3-55-g6feb