From 369e1efeab53ea050ac9bbfa3b623f84c6be14a7 Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Thu, 21 Apr 2022 20:47:04 +0300 Subject: Fix compilation warnings. --- src/libecbor/ecbor_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libecbor/ecbor_internal.h') diff --git a/src/libecbor/ecbor_internal.h b/src/libecbor/ecbor_internal.h index 9612c1a..c237f91 100644 --- a/src/libecbor/ecbor_internal.h +++ b/src/libecbor/ecbor_internal.h @@ -41,7 +41,7 @@ enum { }; /* Static item, for various initializations */ -static ecbor_item_t null_item = { +static const ecbor_item_t null_item = { .type = ECBOR_TYPE_NONE, .value = { .tag = { @@ -135,4 +135,4 @@ ecbor_fp64_to_big_endian (double value); extern void ecbor_memcpy (void *dest, void *src, size_t num); -#endif \ No newline at end of file +#endif -- cgit v1.2.3