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
6d6381f5
Commit
6d6381f5
authored
Dec 18, 2015
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix clang and gcc warnings problems again x7
parent
d72039f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
document.h
include/rapidjson/document.h
+2
-2
rapidjson.h
include/rapidjson/rapidjson.h
+1
-1
valuetest.cpp
test/unittest/valuetest.cpp
+1
-1
No files found.
include/rapidjson/document.h
View file @
6d6381f5
...
...
@@ -1231,7 +1231,7 @@ public:
for
(
MemberIterator
itr
=
pos
;
itr
!=
last
;
++
itr
)
itr
->~
Member
();
std
::
memmove
(
&*
pos
,
&*
last
,
static_cast
<
size_t
>
(
MemberEnd
()
-
last
)
*
sizeof
(
Member
));
data_
.
o
.
size
-=
(
last
-
first
);
data_
.
o
.
size
-=
static_cast
<
SizeType
>
(
last
-
first
);
return
pos
;
}
...
...
@@ -1431,7 +1431,7 @@ public:
for
(
ValueIterator
itr
=
pos
;
itr
!=
last
;
++
itr
)
itr
->~
GenericValue
();
std
::
memmove
(
pos
,
last
,
static_cast
<
size_t
>
(
End
()
-
last
)
*
sizeof
(
GenericValue
));
data_
.
a
.
size
-=
(
last
-
first
);
data_
.
a
.
size
-=
static_cast
<
SizeType
>
(
last
-
first
);
return
pos
;
}
...
...
include/rapidjson/rapidjson.h
View file @
6d6381f5
...
...
@@ -467,7 +467,7 @@ RAPIDJSON_NAMESPACE_END
///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_NORETURN_SUFFIX
#if defined(__clang__)
#if defined(__clang__)
&& !defined(NDEBUG)
#define RAPIDJSON_NORETURN_SUFFIX __attribute__ ((noreturn))
#else
#define RAPIDJSON_NORETURN_SUFFIX
...
...
test/unittest/valuetest.cpp
View file @
6d6381f5
...
...
@@ -492,7 +492,7 @@ TEST(Value, Int64) {
EXPECT_FALSE
(
z
.
IsUint
());
EXPECT_NEAR
(
4294967296.0
,
z
.
GetDouble
(),
0.0
);
z
.
SetInt64
(
int64_t
(
-
2147483648
)
-
1
);
// -2^31-1, cannot cast as int
z
.
SetInt64
(
-
int64_t
(
2147483648u
)
-
1
);
// -2^31-1, cannot cast as int
EXPECT_FALSE
(
z
.
IsInt
());
EXPECT_NEAR
(
-
2147483649.0
,
z
.
GetDouble
(),
0.0
);
...
...
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