summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-07-16 10:18:16 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-08-04 13:34:38 +0200
commitc5b356d5d6cfca1128b35f235dfdb893f2888027 (patch)
tree5efd5ba2c657cb5ec809b6db5d60e1f36e1acc0b
parentebc1e8fc4ec2888fdb99d487c064d8ef586f3ee3 (diff)
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 <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12459)
-rw-r--r--include/openssl/err.h2
1 files changed, 1 insertions, 1 deletions
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;
}