Skip to content

Commit f1b3258

Browse files
bergzandthiagomacieira
authored andcommitted
validation: fix undef var with half float disabled
Signed-off-by: Koen Zandberg <[email protected]>
1 parent df56482 commit f1b3258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cborvalidation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static inline CborError validate_floating_point(CborValue *it, CborType type, ui
386386
val = valf;
387387
} else {
388388
# ifdef CBOR_NO_HALF_FLOAT_TYPE
389-
(void)val16;
389+
(void)valf16;
390390
return CborErrorUnsupportedType;
391391
# else
392392
err = cbor_value_get_half_float(it, &valf16);

0 commit comments

Comments
 (0)