mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
Merge pull request #1200 from thyu/develop
Fix -Wno-sometimes-uninitialized by initializing "result" in parse_sax
This commit is contained in:
@@ -64,7 +64,7 @@ class binary_reader
|
||||
const bool strict = true)
|
||||
{
|
||||
sax = sax_;
|
||||
bool result;
|
||||
bool result = false;
|
||||
|
||||
switch (format)
|
||||
{
|
||||
|
||||
@@ -6033,7 +6033,7 @@ class binary_reader
|
||||
const bool strict = true)
|
||||
{
|
||||
sax = sax_;
|
||||
bool result;
|
||||
bool result = false;
|
||||
|
||||
switch (format)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user