Fixes "unused variable" warnings with OPENSSL_SYS_UEFI.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24459)
int OSSL_PARAM_set_int32(OSSL_PARAM *p, int32_t val)
{
- uint32_t u32;
- unsigned int shift;
-
if (p == NULL) {
err_null_argument;
return 0;
return general_set_int(p, &val, sizeof(val));
} else if (p->data_type == OSSL_PARAM_REAL) {
#ifndef OPENSSL_SYS_UEFI
+ uint32_t u32;
+ unsigned int shift;
+
p->return_size = sizeof(double);
if (p->data == NULL)
return 1;
int OSSL_PARAM_set_uint32(OSSL_PARAM *p, uint32_t val)
{
- unsigned int shift;
-
if (p == NULL) {
err_null_argument;
return 0;
return general_set_uint(p, &val, sizeof(val));
} else if (p->data_type == OSSL_PARAM_REAL) {
#ifndef OPENSSL_SYS_UEFI
+ unsigned int shift;
+
p->return_size = sizeof(double);
if (p->data == NULL)
return 1;