diff options
author | Milo Yip <miloyip@gmail.com> | 2014-07-02 20:59:35 +0400 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2014-07-02 20:59:35 +0400 |
commit | 5a186104f4b9b5f223d4fc997c92f856539df276 (patch) | |
tree | 8581732ee4e65200223ac81c2bff09844907e89c /include/rapidjson/prettywriter.h | |
parent | 5852c42bb9d407fe5ed6e5a94d59d4487bb84da4 (diff) |
Fixes warnings
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r-- | include/rapidjson/prettywriter.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index 5b154ad7..cbbcdab1 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -3,6 +3,11 @@ #include "writer.h"
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Weffc++"
+#endif
+
namespace rapidjson {
//! Writer with indentation and spacing.
@@ -162,8 +167,17 @@ protected: Ch indentChar_;
unsigned indentCharCount_;
+
+private:
+ // Prohibit copy constructor & assignment operator.
+ PrettyWriter(const PrettyWriter&);
+ PrettyWriter& operator=(const PrettyWriter&);
};
} // namespace rapidjson
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
#endif // RAPIDJSON_RAPIDJSON_H_
|