From 8b13e18143cc4199eedd2597572ade34061a5c33 Mon Sep 17 00:00:00 2001 From: zenith432 Date: Sat, 9 Dec 2017 09:38:51 +0000 Subject: [PATCH] BaseTools: correct mal-typed CVfrDLGLexer::errstd The member function CVfrDLGLexer::errstd is intended as an override virtual function of DLGLexerBase::errstd, but due to mismatched prototype, it didn't override, and never got called. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zenith432 Reviewed-by: Liming Gao --- BaseTools/Source/C/VfrCompile/VfrSyntax.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/VfrCompile/VfrSyntax.g b/BaseTools/Source/C/VfrCompile/VfrSyntax.g index fbd5abfaca..a434eacff8 100644 --- a/BaseTools/Source/C/VfrCompile/VfrSyntax.g +++ b/BaseTools/Source/C/VfrCompile/VfrSyntax.g @@ -42,7 +42,7 @@ class CVfrDLGLexer : public VfrLexer { public: CVfrDLGLexer (DLGFileInput *F) : VfrLexer (F) {}; - INT32 errstd (char *Text) + void errstd (const char *Text) { printf ("unrecognized input '%s'\n", Text); } -- 2.39.2