From 11d957f1bb37cb367ad9a6f12fc2318791cc42f0 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Sat, 28 Sep 2024 12:43:33 +0200 Subject: [PATCH] mips: wrong -Werror=maybe-uninitialized warnings with gcc-12-mips-linux-gnu 12.3.0-17ubuntu1cross3 --- src/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decode.c b/src/decode.c index 93947cfb3..740b9508b 100644 --- a/src/decode.c +++ b/src/decode.c @@ -1043,7 +1043,7 @@ bfr_read_32 (void *restrict dst, BITCODE_RC *restrict *restrict src, size_t size) { size_t n; - uint32_t *dp, *sp, *dp0, *sp0; + uint32_t *dp, *sp, *dp0 = NULL, *sp0 = NULL; bool dst_unaligned = false; bool src_unaligned = false; assert (!(size % 4)); @@ -1090,7 +1090,7 @@ bfr_read_64 (void *restrict dst, BITCODE_RC *restrict *restrict src, size_t size) { size_t n; - uint64_t *dp, *sp, *dp0, *sp0; + uint64_t *dp, *sp, *dp0 = NULL, *sp0 = NULL; bool dst_unaligned = false; bool src_unaligned = false; assert (!(size % 8));