mirror of
https://github.com/nlohmann/json.git
synced 2026-10-15 02:37:13 +00:00
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:
1 parent
e33b31e6aa
commit
3004a73951
2 files changed
+2
-2
No files matched your search
@@ -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