From c5b356d5d6cfca1128b35f235dfdb893f2888027 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 16 Jul 2020 10:18:16 +0200 Subject: [PATCH] Mark an argument of an inline function as unused This allows users of this header file to compile their own code with the gcc option -Wunused-parameter. CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/12459) --- include/openssl/err.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/err.h b/include/openssl/err.h index fd3b93aa47..77bbba4f9f 100644 --- a/include/openssl/err.h +++ b/include/openssl/err.h @@ -221,7 +221,7 @@ static ossl_inline int ERR_GET_LIB(unsigned long errcode) return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK; } -static ossl_inline int ERR_GET_FUNC(unsigned long errcode) +static ossl_inline int ERR_GET_FUNC(unsigned long errcode ossl_unused) { return 0; } -- 2.34.1