Cleared -Wmaybe-uninitialized under GCC 5.1

This commit is contained in:
Jeffrey Walton 2015-07-19 11:05:48 -04:00
parent e874cd2ef8
commit d04b813e8b
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -402,7 +402,7 @@ void Inflator::DecodeHeader()
HuffmanDecoder codeLengthDecoder(codeLengths, 19);
for (i = 0; i < hlit+257+hdist+1; )
{
unsigned int k, count, repeater;
unsigned int k=0, count=0, repeater=0;
bool result = codeLengthDecoder.Decode(m_reader, k);
if (!result)
throw UnexpectedEndErr();