summaryrefslogtreecommitdiff
path: root/src/lempar.c
diff options
context:
space:
mode:
authorstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2009-03-07 13:54:10 +0000
committerstbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9>2009-03-07 13:54:10 +0000
commitc6cacf01ed81f339354b947b7e0e338e8b5ee711 (patch)
treea532a35aab26decaa9cb781ea1a4d0990454b1fe /src/lempar.c
parent4915749dd99adebefac8fba2cfa8656a7c87f2d3 (diff)
downloadlighttpd-c6cacf01ed81f339354b947b7e0e338e8b5ee711.tar.gz
Fix some problems with more strict compilers (#1923)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2408 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/lempar.c')
-rw-r--r--src/lempar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lempar.c b/src/lempar.c
index 3b2edcf5..26708ea7 100644
--- a/src/lempar.c
+++ b/src/lempar.c
@@ -180,12 +180,14 @@ static char *yyTracePrompt = 0;
** Outputs:
** None.
*/
+#if 0
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
yyTraceFILE = TraceFILE;
yyTracePrompt = zTracePrompt;
if( yyTraceFILE==0 ) yyTracePrompt = 0;
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
+#endif
#endif /* NDEBUG */
#ifndef NDEBUG
@@ -208,6 +210,7 @@ static const char *yyRuleName[] = {
** This function returns the symbolic name associated with a token
** value.
*/
+#if 0
const char *ParseTokenName(int tokenType){
#ifndef NDEBUG
if( tokenType>0 && (size_t)tokenType<(sizeof(yyTokenName)/sizeof(yyTokenName[0])) ){
@@ -219,6 +222,7 @@ const char *ParseTokenName(int tokenType){
return "";
#endif
}
+#endif
/*
** This function allocates a new parser.
@@ -511,9 +515,9 @@ static void yy_syntax_error(
int yymajor, /* The major type of the error token */
YYMINORTYPE yyminor /* The minor type of the error token */
){
+ ParseARG_FETCH;
UNUSED(yymajor);
UNUSED(yyminor);
- ParseARG_FETCH;
#define TOKEN (yyminor.yy0)
%%
ParseARG_STORE; /* Suppress warning about unused %extra_argument variable */