Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
f5b021d7
Commit
f5b021d7
authored
Apr 02, 2015
by
Milo Yip
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #279 from pah/fix/pedantic
Fixes for GCC with -pedantic
parents
362221d3
cda34f00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
messagereader.cpp
example/messagereader/messagereader.cpp
+1
-1
encodings.h
include/rapidjson/encodings.h
+1
-0
biginteger.h
include/rapidjson/internal/biginteger.h
+2
-1
diyfp.h
include/rapidjson/internal/diyfp.h
+2
-1
No files found.
example/messagereader/messagereader.cpp
View file @
f5b021d7
...
...
@@ -54,7 +54,7 @@ struct MessageHandler
enum
State
{
kExpectObjectStart
,
kExpectNameOrObjectEnd
,
kExpectValue
,
kExpectValue
}
state_
;
std
::
string
name_
;
};
...
...
include/rapidjson/encodings.h
View file @
f5b021d7
...
...
@@ -30,6 +30,7 @@ RAPIDJSON_DIAG_OFF(4702) // unreachable code
#elif defined(__GNUC__)
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
effc
++
)
RAPIDJSON_DIAG_OFF
(
overflow
)
#endif
RAPIDJSON_NAMESPACE_BEGIN
...
...
include/rapidjson/internal/biginteger.h
View file @
f5b021d7
...
...
@@ -252,7 +252,8 @@ private:
(
*
outHigh
)
++
;
return
low
;
#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__)
unsigned
__int128
p
=
static_cast
<
unsigned
__int128
>
(
a
)
*
static_cast
<
unsigned
__int128
>
(
b
);
__extension__
typedef
unsigned
__int128
uint128
;
uint128
p
=
static_cast
<
uint128
>
(
a
)
*
static_cast
<
uint128
>
(
b
);
p
+=
k
;
*
outHigh
=
p
>>
64
;
return
static_cast
<
uint64_t
>
(
p
);
...
...
include/rapidjson/internal/diyfp.h
View file @
f5b021d7
...
...
@@ -75,7 +75,8 @@ struct DiyFp {
h
++
;
return
DiyFp
(
h
,
e
+
rhs
.
e
+
64
);
#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__)
unsigned
__int128
p
=
static_cast
<
unsigned
__int128
>
(
f
)
*
static_cast
<
unsigned
__int128
>
(
rhs
.
f
);
__extension__
typedef
unsigned
__int128
uint128
;
uint128
p
=
static_cast
<
uint128
>
(
f
)
*
static_cast
<
uint128
>
(
rhs
.
f
);
uint64_t
h
=
p
>>
64
;
uint64_t
l
=
static_cast
<
uint64_t
>
(
p
);
if
(
l
&
(
uint64_t
(
1
)
<<
63
))
// rounding
...
...
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