Skip to content

Commit 6723e32

Browse files
committed
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
1 parent bf19c1a commit 6723e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lookaheadparser/lookaheadparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class LookaheadParserHandler {
7878
static const int parseFlags = kParseDefaultFlags | kParseInsituFlag;
7979
};
8080

81-
LookaheadParserHandler::LookaheadParserHandler(char* str) : ss_(str) {
81+
LookaheadParserHandler::LookaheadParserHandler(char* str) : v_(), ss_(str) {
8282
r_.IterativeParseInit();
8383
ParseNext();
8484
}

0 commit comments

Comments
 (0)