Fix -Wno-sometimes-uninitialized by initializing "result" in parse_sax

The function parse_sax() returns sometimes-uninitialized warnings in
some compilers. This commit fixes that.
This commit is contained in:
Tsz-Ho Yu 2018-08-18 01:12:19 +01:00
parent e33b31e6aa
commit 3004a73951
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class binary_reader
const bool strict = true) const bool strict = true)
{ {
sax = sax_; sax = sax_;
bool result; bool result = false;
switch (format) switch (format)
{ {

View file

@ -6033,7 +6033,7 @@ class binary_reader
const bool strict = true) const bool strict = true)
{ {
sax = sax_; sax = sax_;
bool result; bool result = false;
switch (format) switch (format)
{ {