From: Peter Eisentraut Date: Thu, 16 Jul 2020 08:18:16 +0000 (+0200) Subject: Mark an argument of an inline function as unused X-Git-Tag: openssl-3.0.0-alpha6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5b356d5d6cfca1128b35f235dfdb893f2888027;p=thirdparty%2Fopenssl.git 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) --- diff --git a/include/openssl/err.h b/include/openssl/err.h index fd3b93aa47d..77bbba4f9f5 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; }