Skip to content

Commit b61bbbf

Browse files
committed
Fix Tencent#947 -Weffc++ warning
1 parent 67b062b commit b61bbbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/lookaheadparser/lookaheadparser.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#include "rapidjson/document.h"
33
#include <iostream>
44

5+
RAPIDJSON_DIAG_PUSH
6+
#ifdef __GNUC__
7+
RAPIDJSON_DIAG_OFF(effc++)
8+
#endif
9+
510
// This example demonstrates JSON token-by-token parsing with an API that is
611
// more direct; you don't need to design your logic around a handler object and
712
// callbacks. Instead, you retrieve values from the JSON stream by calling
@@ -341,3 +346,5 @@ int main() {
341346

342347
return 0;
343348
}
349+
350+
RAPIDJSON_DIAG_POP

0 commit comments

Comments
 (0)