summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-04-09 09:38:57 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-04-09 09:38:57 +0900
commit9af3469b84d6220ef30ffc2b3709806f90edaf41 (patch)
treea938db39655ce34de132083a6874eb17a9d689d4 /internal
parent1a4f33e84e0633e8f953ee3cb06b42dcc952444a (diff)
internal/bits.h: Suppress "uninitialized variable"
Coverity Scan says "Using uninitialized value c.fixnum when calling __builtin_mul_overflow_p."
Diffstat (limited to 'internal')
-rw-r--r--internal/bits.h2
1 files changed, 1 insertions, 1 deletions
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