\r
VfrCompiler error handler.\r
\r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
static SVFR_WARNING_HANDLE VFR_WARNING_HANDLE_TABLE [] = {\r
{ VFR_WARNING_DEFAULT_VALUE_REDEFINED, ": default value re-defined with different value"},\r
{ VFR_WARNING_STRING_TO_UINT_OVERFLOW, ": String to UINT* Overflow"},\r
+ { VFR_WARNING_ACTION_WITH_TEXT_TWO, ": Action opcode should not have TextTwo part"},\r
+ { VFR_WARNING_OBSOLETED_FRAMEWORK_OPCODE, ": Not recommend to use obsoleted framework opcode"},\r
{ VFR_WARNING_CODEUNDEFINED, ": undefined Warning Code" }\r
};\r
\r
)\r
{\r
if (mFileName != NULL) {\r
- delete mFileName;\r
+ delete[] mFileName;\r
}\r
}\r
\r
GetFileNameLineNum (LineNum, &FileName, &FileLine);\r
\r
if (mWarningAsError) {\r
- Error (FileName, FileLine, 0x2220, "warning treated as error", NULL);\r
+ Error (FileName, FileLine, 0x2220, (CHAR8 *) "warning treated as error", NULL);\r
}\r
\r
for (Index = 0; mVfrWarningHandleTable[Index].mWarningCode != VFR_WARNING_CODEUNDEFINED; Index++) {\r