Skip to content

Commit

Permalink
Cleared -Wmaybe-uninitialized under GCC 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Jul 19, 2015
1 parent e874cd2 commit d04b813
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion asn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion zinflate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d04b813

Please sign in to comment.