From 9af3469b84d6220ef30ffc2b3709806f90edaf41 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 9 Apr 2020 09:38:57 +0900 Subject: [PATCH] internal/bits.h: Suppress "uninitialized variable" Coverity Scan says "Using uninitialized value c.fixnum when calling __builtin_mul_overflow_p." --- internal/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bits.h b/internal/bits.h index 32ec1cd36c..28c668dd21 100644 --- a/internal/bits.h +++ b/internal/bits.h @@ -112,7 +112,7 @@ /* and GCC permits bitfields for integers other than int */ # define MUL_OVERFLOW_FIXNUM_P(a, b) \ __extension__ ({ \ - struct { long fixnum : sizeof(long) * CHAR_BIT - 1; } c; \ + struct { long fixnum : sizeof(long) * CHAR_BIT - 1; } c = { 0 }; \ __builtin_mul_overflow_p((a), (b), c.fixnum); \ }) #else