diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-27 15:23:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-28 16:43:42 +0100 |
commit | b31e2b69607f80c1e2e9b20ce7e687387cd2db17 (patch) | |
tree | 5f8efebc85528438517a204b3b8884adcedd6449 /compilerplugins | |
parent | 05602710a047c58db0ceda88bedc291420990bc1 (diff) |
Remove unused YYWarning functions (cargo cult?)
Change-Id: I9cb03530150ee35bdaee4920dd2e818007a0a658
Reviewed-on: https://gerrit.libreoffice.org/68469
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/externandnotdefined.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx index faf6bffb136c..afd77abe7bda 100644 --- a/compilerplugins/clang/externandnotdefined.cxx +++ b/compilerplugins/clang/externandnotdefined.cxx @@ -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 |