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:
authorJohn Stiles <johnstiles@gmail.com>2017-03-13 17:43:26 +0300
committerJohn Stiles <johnstiles@gmail.com>2017-03-13 17:43:26 +0300
commit6723e3296a9ae52aa249bd57395c955d05d81b45 (patch)
tree5cba27d06b4253b32f5917b0966e3a6cb4a69489 /example
parentbf19c1a0beafa6a118b1c242d16d0c0cfe0296e2 (diff)
Initialize v_ to placate GCC
v_ has a value assigned to it as part of ParseNext() which happens in the constructor, but that’s not soon enough for GCC
Diffstat (limited to 'example')
-rw-r--r--example/lookaheadparser/lookaheadparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/lookaheadparser/lookaheadparser.cpp b/example/lookaheadparser/lookaheadparser.cpp
index 29d92994..9ce84325 100644
--- a/example/lookaheadparser/lookaheadparser.cpp
+++ b/example/lookaheadparser/lookaheadparser.cpp
@@ -78,7 +78,7 @@ protected:
static const int parseFlags = kParseDefaultFlags | kParseInsituFlag;
};
-LookaheadParserHandler::LookaheadParserHandler(char* str) : ss_(str) {
+LookaheadParserHandler::LookaheadParserHandler(char* str) : v_(), ss_(str) {
r_.IterativeParseInit();
ParseNext();
}