aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-20 14:02:01 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-04 12:30:42 +0900
commitaa44b29030208106e75c12c3325350ebad4161b8 (patch)
treed28883113b410fe7079171f82ea80e3ba8921aad /bignum.c
parentf7048f9d55bb6c5ad656950a5e0c3550465d08c4 (diff)
downloadruby-aa44b29030208106e75c12c3325350ebad4161b8.tar.gz
suppress uninitialized variable warnings
Starting GCC 7, warnings about uninitialized variables are issued around them. Such warnings could be false positives (all versions of clang do not warn), but adding initializers there could never be bad things.
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index e9bb5780b5..07b7cb2101 100644
--- a/bignum.c
+++ b/bignum.c
@@ -3409,7 +3409,7 @@ rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
size_t numbytes;
int nlz_bits_in_msbyte;
size_t numwords;
- size_t nlz_bits;
+ size_t nlz_bits = 0;
if (word_numbits == 0)
return (size_t)-1;