Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
3004a739
Commit
3004a739
authored
Aug 18, 2018
by
Tsz-Ho Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
e33b31e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
binary_reader.hpp
include/nlohmann/detail/input/binary_reader.hpp
+1
-1
json.hpp
single_include/nlohmann/json.hpp
+1
-1
No files found.
include/nlohmann/detail/input/binary_reader.hpp
View file @
3004a739
...
...
@@ -64,7 +64,7 @@ class binary_reader
const
bool
strict
=
true
)
{
sax
=
sax_
;
bool
result
;
bool
result
=
false
;
switch
(
format
)
{
...
...
single_include/nlohmann/json.hpp
View file @
3004a739
...
...
@@ -6033,7 +6033,7 @@ class binary_reader
const
bool
strict
=
true
)
{
sax
=
sax_
;
bool
result
;
bool
result
=
false
;
switch
(
format
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment