diff options
author | Milo Yip <miloyip@gmail.com> | 2017-05-11 11:41:26 +0300 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2017-05-11 11:41:26 +0300 |
commit | b61bbbfe371c51c3ee86103bd1da040bcc5a0779 (patch) | |
tree | 0bbd40f9462c620936a5a812d53316b54f8df59d /example | |
parent | 67b062b3c62b84057e3b09366193c816aaaab431 (diff) |
Fix #947 -Weffc++ warning
Diffstat (limited to 'example')
-rw-r--r-- | example/lookaheadparser/lookaheadparser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/lookaheadparser/lookaheadparser.cpp b/example/lookaheadparser/lookaheadparser.cpp index 29469ed0..f627f4d8 100644 --- a/example/lookaheadparser/lookaheadparser.cpp +++ b/example/lookaheadparser/lookaheadparser.cpp @@ -2,6 +2,11 @@ #include "rapidjson/document.h" #include <iostream> +RAPIDJSON_DIAG_PUSH +#ifdef __GNUC__ +RAPIDJSON_DIAG_OFF(effc++) +#endif + // This example demonstrates JSON token-by-token parsing with an API that is // more direct; you don't need to design your logic around a handler object and // callbacks. Instead, you retrieve values from the JSON stream by calling @@ -341,3 +346,5 @@ int main() { return 0; } + +RAPIDJSON_DIAG_POP |