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
5c003f3e
Commit
5c003f3e
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 x9
Abandon RAPIDJSON_NORETURN_SUFFIX
parent
efdbdc60
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
15 deletions
+9
-15
filereadstream.h
include/rapidjson/filereadstream.h
+3
-2
memorystream.h
include/rapidjson/memorystream.h
+3
-2
rapidjson.h
include/rapidjson/rapidjson.h
+0
-9
readertest.cpp
test/unittest/readertest.cpp
+3
-2
No files found.
include/rapidjson/filereadstream.h
View file @
5c003f3e
...
...
@@ -22,6 +22,7 @@
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
padded
)
RAPIDJSON_DIAG_OFF
(
unreachable
-
code
)
RAPIDJSON_DIAG_OFF
(
missing
-
noreturn
)
#endif
RAPIDJSON_NAMESPACE_BEGIN
...
...
@@ -51,8 +52,8 @@ public:
size_t
Tell
()
const
{
return
count_
+
static_cast
<
size_t
>
(
current_
-
buffer_
);
}
// Not implemented
void
Put
(
Ch
)
RAPIDJSON_NORETURN_SUFFIX
{
RAPIDJSON_ASSERT
(
false
);
}
void
Flush
()
RAPIDJSON_NORETURN_SUFFIX
{
RAPIDJSON_ASSERT
(
false
);
}
void
Put
(
Ch
)
{
RAPIDJSON_ASSERT
(
false
);
}
void
Flush
()
{
RAPIDJSON_ASSERT
(
false
);
}
Ch
*
PutBegin
()
{
RAPIDJSON_ASSERT
(
false
);
return
0
;
}
size_t
PutEnd
(
Ch
*
)
{
RAPIDJSON_ASSERT
(
false
);
return
0
;
}
...
...
include/rapidjson/memorystream.h
View file @
5c003f3e
...
...
@@ -20,6 +20,7 @@
#ifdef __clang__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
unreachable
-
code
)
RAPIDJSON_DIAG_OFF
(
missing
-
noreturn
)
#endif
RAPIDJSON_NAMESPACE_BEGIN
...
...
@@ -46,8 +47,8 @@ struct MemoryStream {
size_t
Tell
()
const
{
return
static_cast
<
size_t
>
(
src_
-
begin_
);
}
Ch
*
PutBegin
()
{
RAPIDJSON_ASSERT
(
false
);
return
0
;
}
void
Put
(
Ch
)
RAPIDJSON_NORETURN_SUFFIX
{
RAPIDJSON_ASSERT
(
false
);
}
void
Flush
()
RAPIDJSON_NORETURN_SUFFIX
{
RAPIDJSON_ASSERT
(
false
);
}
void
Put
(
Ch
)
{
RAPIDJSON_ASSERT
(
false
);
}
void
Flush
()
{
RAPIDJSON_ASSERT
(
false
);
}
size_t
PutEnd
(
Ch
*
)
{
RAPIDJSON_ASSERT
(
false
);
return
0
;
}
// For encoding detection only.
...
...
include/rapidjson/rapidjson.h
View file @
5c003f3e
...
...
@@ -464,15 +464,6 @@ RAPIDJSON_NAMESPACE_END
#endif // RAPIDJSON_DIAG_*
///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_NORETURN_SUFFIX
#if defined(__clang__) && !defined(NDEBUG)
#define RAPIDJSON_NORETURN_SUFFIX __attribute__ ((noreturn))
#else
#define RAPIDJSON_NORETURN_SUFFIX
#endif
///////////////////////////////////////////////////////////////////////////////
// C++11 features
...
...
test/unittest/readertest.cpp
View file @
5c003f3e
...
...
@@ -25,6 +25,7 @@ using namespace rapidjson;
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF
(
effc
++
)
RAPIDJSON_DIAG_OFF
(
float
-
equal
)
RAPIDJSON_DIAG_OFF
(
missing
-
noreturn
)
#endif
#ifdef __clang__
...
...
@@ -1040,8 +1041,8 @@ public:
size_t
Tell
()
const
{
return
static_cast
<
size_t
>
(
is_
.
tellg
());
}
Ch
*
PutBegin
()
{
assert
(
false
);
return
0
;
}
void
Put
(
Ch
)
RAPIDJSON_NORETURN_SUFFIX
{
assert
(
false
);
}
void
Flush
()
RAPIDJSON_NORETURN_SUFFIX
{
assert
(
false
);
}
void
Put
(
Ch
)
{
assert
(
false
);
}
void
Flush
()
{
assert
(
false
);
}
size_t
PutEnd
(
Ch
*
)
{
assert
(
false
);
return
0
;
}
private
:
...
...
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