diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-05-03 18:50:48 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-05-05 21:42:28 +0000 |
commit | 905e0c08ee49aa6cf1d605c28bcbb9f0a9945064 (patch) | |
tree | 8486f401b76fcdb059b017ba141288db3674ef03 /tools | |
parent | c6d7759081639c4389975d91f5e2c20399c460b6 (diff) | |
download | wireshark-905e0c08ee49aa6cf1d605c28bcbb9f0a9945064.tar.gz |
lempar: set ParseInit/ParseFinalize static
grammar.c:471:6: warning: no previous prototype for ‘DfilterInit’ [-Wmissing-prototypes]
grammar.c:646:6: warning: no previous prototype for ‘DfilterFinalize’ [-Wmissing-prototypes]
dtd_grammar.c:502:6: warning: no previous prototype for ‘DtdParseInit’ [-Wmissing-prototypes]
dtd_grammar.c:637:6: warning: no previous prototype for ‘DtdParseFinalize’ [-Wmissing-prototypes]
Change-Id: I9c43fb4d5ad50992e8e55163333793b20319aa74
Reviewed-on: https://code.wireshark.org/review/21516
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lemon/lempar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lemon/lempar.c b/tools/lemon/lempar.c index bd3969159c..242bd33b5a 100644 --- a/tools/lemon/lempar.c +++ b/tools/lemon/lempar.c @@ -318,7 +318,7 @@ static int yyGrowStack(yyParser *p){ /* Initialize a new parser that has already been allocated. */ -void ParseInit(void *yypParser){ +static void ParseInit(void *yypParser){ yyParser *pParser = (yyParser*)yypParser; #ifdef YYTRACKMAXSTACKDEPTH pParser->yyhwm = 0; @@ -417,7 +417,7 @@ static void yy_pop_parser_stack(yyParser *pParser){ /* ** Clear all secondary memory allocations from the parser */ -void ParseFinalize(void *p){ +static void ParseFinalize(void *p){ yyParser *pParser = (yyParser*)p; while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 |