Kaydet (Commit) b31e2b69 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unused YYWarning functions (cargo cult?)

Change-Id: I9cb03530150ee35bdaee4920dd2e818007a0a658
Reviewed-on: https://gerrit.libreoffice.org/68469
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 05602710
......@@ -46,7 +46,7 @@ bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) {
}
// this is the bison/flex C API, it has to be defined this way
std::string functionName = functionDecl->getNameAsString();
if (functionName == "yyerror" || functionName == "YYWarning" || functionName == "yyparse" || functionName == "yylex") {
if (functionName == "yyerror" || functionName == "yyparse" || functionName == "yylex") {
return true;
}
// see vcl/unx/gtk/app/gtksys.cxx, typename conflicts prevent using the right include
......
......@@ -145,15 +145,6 @@ int yywrap(void)
return 1;
}
/*****************************************************************************/
void YYWarning( const char *s )
/*****************************************************************************/
{
/* write warning to stderr */
fprintf( stderr,
"Warning: \"%s\" in line %d, column %d: \"%s\"\n", s, yylineno, yycolumn, yytext );
}
/*****************************************************************************/
void yyerror ( const char *s )
/*****************************************************************************/
......
......@@ -47,9 +47,6 @@
#define YY_NO_UNISTD_H
/* forwards */
void YYWarning();
static int bText=0;
%}
......@@ -176,15 +173,6 @@ int yywrap(void)
return 1;
}
/*****************************************************************************/
void YYWarning( const char *s )
/*****************************************************************************/
{
/* write warning to stderr */
fprintf( stderr,
"Warning: \"%s\" in line %d: \"%s\"\n", s, yylineno, yytext );
}
/*****************************************************************************/
void yyerror ( const char *s )
/*****************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment