From: zenith432 Date: Sat, 9 Dec 2017 09:38:51 +0000 (+0000) Subject: BaseTools: correct mal-typed CVfrDLGLexer::errstd X-Git-Tag: edk2-stable201903~2684 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=8b13e18143cc4199eedd2597572ade34061a5c33;hp=b23276135a51d9d9e9973f30ff6c5014a79d5177 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 --- 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); }