From d04b813e8b078e717992b86b8b6103db0bd2cec3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 19 Jul 2015 11:05:48 -0400 Subject: Cleared -Wmaybe-uninitialized under GCC 5.1 --- asn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'asn.cpp') diff --git a/asn.cpp b/asn.cpp index 9a0c257b..3f88582c 100644 --- a/asn.cpp +++ b/asn.cpp @@ -74,7 +74,9 @@ bool BERLengthDecode(BufferedTransformation &bt, lword &length, bool &definiteLe bool BERLengthDecode(BufferedTransformation &bt, size_t &length) { - lword lw; + // Initialize to silence warning from diagnostic tools + lword lw = 0; + bool definiteLength; if (!BERLengthDecode(bt, lw, definiteLength)) BERDecodeError(); -- cgit v1.2.1