Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2014-06-25 12:06:00 +0400
committerMilo Yip <miloyip@gmail.com>2014-06-25 12:06:00 +0400
commite4ffa48a7563e892047c27f0a50fdeb6f71e6b8b (patch)
tree10a23f1332b47d4d163ee5005baf4771bfd46b85 /include/rapidjson/rapidjson.h
parent23056abad12c5bddf73e00b728d1d53c712627a5 (diff)
Remove some clang -Weverything warnings.
Diffstat (limited to 'include/rapidjson/rapidjson.h')
-rw-r--r--include/rapidjson/rapidjson.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/rapidjson/rapidjson.h b/include/rapidjson/rapidjson.h
index 2ba3c580..b11e6b96 100644
--- a/include/rapidjson/rapidjson.h
+++ b/include/rapidjson/rapidjson.h
@@ -55,7 +55,7 @@ typedef unsigned __int64 uint64_t;
Currently the default uses 4 bytes alignment. User can customize this.
*/
#ifndef RAPIDJSON_ALIGN
-#define RAPIDJSON_ALIGN(x) ((x + 3) & ~3)
+#define RAPIDJSON_ALIGN(x) ((x + 3u) & ~3u)
#endif
///////////////////////////////////////////////////////////////////////////////
@@ -183,7 +183,7 @@ inline void PutN(Stream& stream, Ch c, size_t n) {
// StringStream
//! Read-only string stream.
-/*! \implements Stream
+/*! \note implements Stream concept
*/
template <typename Encoding>
struct GenericStringStream {
@@ -193,7 +193,7 @@ struct GenericStringStream {
Ch Peek() const { return *src_; }
Ch Take() { return *src_++; }
- size_t Tell() const { return src_ - head_; }
+ size_t Tell() const { return static_cast<size_t>(src_ - head_); }
Ch* PutBegin() { RAPIDJSON_ASSERT(false); return 0; }
void Put(Ch) { RAPIDJSON_ASSERT(false); }
@@ -211,7 +211,7 @@ typedef GenericStringStream<UTF8<> > StringStream;
//! A read-write string stream.
/*! This string stream is particularly designed for in-situ parsing.
- \implements Stream
+ \note implements Stream concept
*/
template <typename Encoding>
struct GenericInsituStringStream {
@@ -248,7 +248,7 @@ enum Type {
kObjectType = 3, //!< object
kArrayType = 4, //!< array
kStringType = 5, //!< string
- kNumberType = 6, //!< number
+ kNumberType = 6 //!< number
};
} // namespace rapidjson