From patchwork Thu Mar 24 20:30:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Duran, Leo" X-Patchwork-Id: 64423 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp881930lbc; Thu, 24 Mar 2016 13:31:38 -0700 (PDT) X-Received: by 10.66.65.137 with SMTP id x9mr15568681pas.137.1458851492548; Thu, 24 Mar 2016 13:31:32 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id zg6si14272720pac.237.2016.03.24.13.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 13:31:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@amdcloud.onmicrosoft.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5BE541A1EE1; Thu, 24 Mar 2016 13:31:52 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0611.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc09::611]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7C24D1A1EF1 for ; Thu, 24 Mar 2016 13:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=22zDcGFexHm9/bg7TfmNYh2EApFF1NwgQdDOIT01rLQ=; b=5BccGUubKVFGgxFsz/RGHd4g/hhXZSzBBe68sXqHYvw66vSSZ1stjcK1ZQjSO1RCSzQGLnk05GkAWfWqU28ioopbAxOngZFtlKVmsqP51scBWoZ5EyEJdrCYoT9J14GvJ7PSgLsfVlWyGMtZ0IQRoXJLKodnrW1NzPZZbxM4uLs= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none; lists.01.org; dmarc=none action=none header.from=amd.com; Received: from leduran-Precision-WorkStation-T5400.vendor.access.domain (165.204.77.2) by BLUPR12MB0516.namprd12.prod.outlook.com (10.162.92.18) with Microsoft SMTP Server (TLS) id 15.1.434.16; Thu, 24 Mar 2016 20:31:22 +0000 From: Leo Duran To: Date: Thu, 24 Mar 2016 15:30:09 -0500 Message-ID: <1458851413-26577-5-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458851413-26577-1-git-send-email-leo.duran@amd.com> References: <1458851413-26577-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.2] X-ClientProxiedBy: SN1PR07CA0021.namprd07.prod.outlook.com (25.162.170.159) To BLUPR12MB0516.namprd12.prod.outlook.com (25.162.92.18) X-MS-Office365-Filtering-Correlation-Id: 7b82d765-1cd4-458f-8c7c-08d354234404 X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0516; 2:MeAEsTjmro540qJii6mJFmLbwdjhrVCMUfvvbfqT+Qwt0td1HtdUe1fuMLaw/BRc0c65tbmmOIpwethU/8uN6la2n2T//RhFJgNeS/KTtazd8avY9cnU2+CYfyo/kn0OlOOLkOA2MfFGDvrtvQUlRAsjQe1NspnKcANR3BTIrW5VMxCZHU/rRaM1KPJmwNiH; 3:14vzKr4rhH8X6T09a5F+6bEo0rt4nkGKM4iji+mxhV+cPGwsf0b/XFDx1I6QW2D9Nla2vjZjfazObOX4NGkg5eNKQaH1hqClEluBzk9eJotZKjWYWhgbs2dDgW50259T; 25:wfVJMTCV6vYsS2xqY0Ug5SJrs8IsgbETPywI2tgCmXxyXwHvn9veSr/ZNRpmUZm3zjAyefSRmy65nb04EuSMoowLLvCjK1DtqYMp/SNY1+4ihmTO3D0/kci8E0J1GOZGKJnzRIywmMtVt/Hg6Q19w2OVqjYIsJ82C5BHGcq2afXWK+wMtrmJ410HKzHSv5UJgXcK06ADHYbVq+nYejTwfZq1mjxLB9UBXh4HGFcm82jdAyz0rGc8Dkz2qsuRODkWpJ5YLHHcwED+URyzXAXHtRw/NRfeyTBQpZk0Pb7Yv4LU4/a5ZWnagv9961lguPv116ahCtyuOWPDszk9ZZcwAhJv5Oa33IDWZHN1ItKsJXzelWcLFKp0DPb89oeyifmcgmzBxWWWl/++o+O61ftMdpdsBGDzX/uzrUFGD+SQSIBGi77T2PrKISPxlllKCkIXHR3tVrvgyr3xWk7Cwzn+HzNHZVN4wU13kyW5Yf8CIC57LKrE6wGZUlbGEZ58oe8j+D660pXXckkcuoRC4VNwxzRAV6ver2H4iEwwGI7ZdJ6Id9nPTgvz36d+hlgwojdU X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0516; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0516; 20:XSbWOfvPuDko/cjnEPgVXJ+2Jo4hMA5uhTSurIgHAnhTmQQQhUCKwjDnXOKgOt1EDPQm9SrBWAqJ9rIuho6Q2Zdp4LcAVDj4xdYz2Tl57HoYLTJvOwssoiEcjIZlj2YJSk1J1exGr9tN/MSN0jNLIOIEGvedTESP33nDLrW0tlEJnc6bQMMtEh9Dz6d9kxQJD16TOEf77pzHUIuMfleNZN8iVSvRhPiMlQlWfII3Zv8jRn7idZrxe9dNCTB5BmncKQXC4jZV3iN1mwUjOfvPBVsa2+FCqiLiv0+7xHkZNbZrtSTn0e3M0/BjsTU9pGo4rT5JOa91ufU1FKkTBqrsi2JIQZZ5KjzFYwNqYmUL5mlvA2tfBm3NzqEwbC5bpL0FUJUk8BH0iUEfiQTvV2zV2BCtrUBUaNEj4Di9C8n7TpsqFacRwiSDXDvifXcvRQHd/st/zsrFGSf4CdSiuZqoMY21tD079Ujy/LvhCgoW66ahAXmQE9O6FrM8GEVgzbrX; 4:nEVopZmPLN69qb056qYivdeD7Msiu4G1J2oKI+vr3/rEi8LFCjCjcOJmEeDrpPDqZlXZA5ila8PuKJBa8ZvQ0SaHJZegwS2OgEjJ8TTVqYLmwGH4BEakfPqcrZdTIjUWiBf+eOxt/ku1Jd5vN11xSqc3GK6b4ovHDMCRQJA2BMJ+vbVNIx35reVaf1Qy2Bhjb2HRr6iSCQ/TGkJp1/gEROwd2aTg0lk5LPS7cxf0Q7Dl48O7d/vMrdmoimV+o528NP7Oel/W2HNumd5XSWPxxnueUrDYlUVT4opEjU0nNuy1ryPgkwMhl7wwJgQ2vUpOgSeM/tur0/SqdcRYMZNebMNqXzL1gUbZJUF2SCQ2lFlJiPPpGZSqyRt/9Mo6ogsx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR12MB0516; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0516; X-Forefront-PRVS: 0891BC3F3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(229853001)(2950100001)(2351001)(586003)(86362001)(2906002)(3846002)(77096005)(575784001)(6116002)(19580395003)(47776003)(19580405001)(5008740100001)(33646002)(5003940100001)(66066001)(1096002)(5004730100002)(4326007)(76176999)(50986999)(189998001)(36756003)(42186005)(110136002)(50466002)(48376002)(81166005)(50226001)(92566002)(26583001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0516; H:leduran-Precision-WorkStation-T5400.vendor.access.domain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR12MB0516; 23:8zCY3tS7MkrmoSHMqOOVl3sEscLY8TGf6qZ4dMJGO?= =?us-ascii?Q?av9cpPe5Y7BqXN7HXC7R3zTjY6SoujlKRICdPSjx83xifvuRQM584qinJiTR?= =?us-ascii?Q?BcxHEuE++LG8yLdeV70BpcuabCpKwOsZlnXHt2hN1kmq6I8Ofa7nXJPgRdh4?= =?us-ascii?Q?cXUgwVvYDEcMAmFOFyquL8VnITfDqfXhf195zvmk/w6yOfMTyPGwriSHwLsR?= =?us-ascii?Q?Mj+b3fV2nKNChl/H2JPQa1rzIalpB1E4UAplNlN16uvpG30M3LMdfaqyxJnJ?= =?us-ascii?Q?zXoq9RRHfmfOumVTbjrWGne97743EYwfcvEJD3g/CRM/xUQ1Mrx3Bnw/QFxK?= =?us-ascii?Q?4EcVIAR2EPF/KfBkFcxPAl8XRrWFl6mvWTfKZ0r0ff22LyddfGh3CRaM0ou7?= =?us-ascii?Q?LguvLQVAY6FfenQS16RYPyQs+j2aPWiH8k+XWzG00MqOAXLEskHk8L9iMRlT?= =?us-ascii?Q?hEmTR/MxAb1kThIdQoeT5UKemgJoL+FZJVeUxgTQNKK0T+u+xKD3TMnRm93b?= =?us-ascii?Q?b9HfOJL375th45n+tiVATEFHmlexWLy2TTIwAwnYqP+og1/KPoLfQximgE5Q?= =?us-ascii?Q?AuVhvxJ6cnqx30/xKxqNhe/CnLgGJti/RYlaUiAupqDey3SABzOkELqIrFvE?= =?us-ascii?Q?HgnOM3QXyoGNV1O76NmuFpyn6UiNXmRA6AmMRXv+h39kMlsTWv1IWKsrOzXq?= =?us-ascii?Q?FXfs8TPt7kV4FngfxcSBe4hTHGRPC3p8y2PeilGjE5RE4bzUzjCOjgz4ezSn?= =?us-ascii?Q?6tAn/3QE6fGAeSEEPnz5CCxbMdgB2r/HZ6T+6sUlsfVe/ssAgpkSq2mOeJK1?= =?us-ascii?Q?ubdHbBwSIePyodYvP3NvX7bLuE8aUqL+lKDEcQv87+8ogfg46UpTVAbPjZgc?= =?us-ascii?Q?qj+kJUP0ZmwJniDzJkCMnkWFqiyivvHcYSvDf58ez4algWYLNnXiB6LwBBKo?= =?us-ascii?Q?7oeTYIZhqpUntNqSltjPIQVl5BH2lHm2S80zpd3Zw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0516; 5:gF8/K6KECj0yJU1G+07vB5UJ33HSW8Js0Xa6mK+by25qBWzkXQIY++qTSr3437WRbHvl02OkYTZDuHp1QFDTqZQO0RkKq9NBxvou8HCQxyf8l4FQTe7Skq3G2hFym8jJm/mjO47eGkTUDnzR7ynGKg==; 24:EmxkXebREtssF+smqFPCi+iy8fgKPtt6LEQVz/ph872gMm0Sz/9n16tWpaQqjLN3PgQWco0AqOENPloUbowpTIKQxmIXjSXP684+x6lN1xU=; 20:lmOMqBru/UsiBxkXCymi/6mcYHZN+lbp/9qWjrVYOXpczN7aTeDncRHWWfq4flE8zxV7dP63jyeLrL/7YVaoPS7HjMcsAJT9s3p1JhtxrxEQ5f3iFWqjkgw7dxpKyYuT9L7Dz6q8cYb3tQLvjH5KENPmIvtB2y9iVEJadBi+A5Cm2EpD0sWFpthi4l/wOvX0zq8aWcy4FsmKNIGY+zOAaWM/SlPE7ZLS5v1CrtMsGBh4kirewGmTwKbW/v6dCscP X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2016 20:31:22.8140 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0516 Subject: [edk2] [PATCH] BaseTools: fixups to get rid of compiler warnings X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Leo Duran , leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leo Duran --- BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c | 18 +++++++++--------- BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c | 2 +- BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c | 6 +++--- BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c | 8 ++++---- BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c | 2 +- BaseTools/Source/C/VfrCompile/VfrError.cpp | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c index ddd9bd6..19be3bc 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/bits.c @@ -573,13 +573,13 @@ const char *suffix; else fprintf(DefFile, "extern SetWordType zzerr%d[];\n", esetnum); if ( name!=NULL ) { - fprintf(ErrFile, "SetWordType %s%s[%d] = {", + fprintf(ErrFile, "SetWordType %s%s[%lu] = {", name, - suffix, + suffix, NumWords(TokenNum-1)*sizeof(unsigned)); } else { - fprintf(ErrFile, "SetWordType zzerr%d[%d] = {", + fprintf(ErrFile, "SetWordType zzerr%d[%lu] = {", esetnum, NumWords(TokenNum-1)*sizeof(unsigned)); } @@ -641,20 +641,20 @@ const char *suffix; esetnum++; if ( name!=NULL ) { - fprintf(Parser_h, "\tstatic SetWordType %s%s[%d];\n", name, suffix, + fprintf(Parser_h, "\tstatic SetWordType %s%s[%lu];\n", name, suffix, NumWords(TokenNum-1)*sizeof(unsigned)); - fprintf(Parser_c, "SetWordType %s::%s%s[%d] = {", + fprintf(Parser_c, "SetWordType %s::%s%s[%lu] = {", CurrentClassName, name, suffix, NumWords(TokenNum-1)*sizeof(unsigned)); } else { - fprintf(Parser_c, "SetWordType %s::err%d[%d] = {", + fprintf(Parser_c, "SetWordType %s::err%d[%lu] = {", CurrentClassName, esetnum, NumWords(TokenNum-1)*sizeof(unsigned)); - fprintf(Parser_h, "\tstatic SetWordType err%d[%d];\n", esetnum, + fprintf(Parser_h, "\tstatic SetWordType err%d[%lu];\n", esetnum, NumWords(TokenNum-1)*sizeof(unsigned)); } @@ -787,7 +787,7 @@ GenParser_c_Hdr() /* Build constructors */ fprintf(Parser_c, "\n%s::", CurrentClassName); - fprintf(Parser_c, "%s(ANTLRTokenBuffer *input) : %s(input,%d,%d,%d,%d)\n", + fprintf(Parser_c, "%s(ANTLRTokenBuffer *input) : %s(input,%d,%d,%d,%lu)\n", CurrentClassName, (BaseClassName == NULL ? "ANTLRParser" : BaseClassName), OutputLL_k, @@ -912,7 +912,7 @@ GenErrHdr( ) #ifdef DUM if ( LexGen ) fprintf(ErrFile, "#define zzEOF_TOKEN %d\n", (TokenInd!=NULL?TokenInd[EofToken]:EofToken)); #endif - fprintf(ErrFile, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + fprintf(ErrFile, "#define zzSET_SIZE %lu\n", NumWords(TokenNum-1)*sizeof(unsigned)); if ( DemandLookahead ) fprintf(ErrFile, "#define DEMAND_LOOK\n"); fprintf(ErrFile, "#include \"antlr.h\"\n"); if ( GenAST ) fprintf(ErrFile, "#include \"ast.h\"\n"); diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c index 7f686a5..d428b3b 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/fset2.c @@ -2210,7 +2210,7 @@ void MR_backTraceReport() if (p->ntype != nToken) continue; tn=(TokNode *)p; if (depth != 0) fprintf(stdout," "); - fprintf(stdout,TerminalString(tn->token)); + fprintf(stdout, " %s", TerminalString(tn->token)); depth++; if (! MR_AmbAidMultiple) { if (set_nil(tn->tset)) { diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c index 368a96b..d0a448d 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c @@ -3866,7 +3866,7 @@ int file; /* MR10 */ _gen(" * "); /* MR10 */ for (i=0 ; i < Save_argc ; i++) { /* MR10 */ _gen(" "); -/* MR10 */ _gen(Save_argv[i]); +/* MR10 */ _gen1("%s", Save_argv[i]); /* MR10 */ }; _gen("\n"); _gen(" *\n"); @@ -3911,7 +3911,7 @@ int file; } #endif /* ###WARNING: This will have to change when SetWordSize changes */ - if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + if ( !GenCC ) _gen1("#define zzSET_SIZE %lu\n", NumWords(TokenNum-1)*sizeof(unsigned)); if (TraceGen) { _gen("#ifndef zzTRACE_RULES\n"); /* MR20 */ _gen("#define zzTRACE_RULES\n"); /* MR20 */ @@ -4125,7 +4125,7 @@ char * gate; /* MR10 */ if ( LexGen ) fprintf(f, "#define zzEOF_TOKEN %d\n", (TokenInd!=NULL?TokenInd[EofToken]:EofToken)); #endif /* ###WARNING: This will have to change when SetWordSize changes */ - fprintf(f, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); + fprintf(f, "#define zzSET_SIZE %lu\n", NumWords(TokenNum-1)*sizeof(unsigned)); if (TraceGen) { fprintf(f,"#ifndef zzTRACE_RULES\n"); /* MR20 */ fprintf(f,"#define zzTRACE_RULES\n"); /* MR20 */ diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c index 8c524fe..a4e7f69 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c @@ -706,7 +706,7 @@ FILE *output; /* MR26 */ if (! (isalpha(*t) || isdigit(*t) || *t == '_' || *t == '$')) break; /* MR26 */ } /* MR26 */ } -/* MR26 */ fprintf(output,strBetween(pSymbol, t, pSeparator)); +/* MR26 */ fprintf(output, "%s", strBetween(pSymbol, t, pSeparator)); *q = p; return (*pSeparator == 0); @@ -771,7 +771,7 @@ FILE *f; &pValue, &pSeparator, &nest); - fprintf(f,strBetween(pDataType, pSymbol, pSeparator)); + fprintf(f, "%s", strBetween(pDataType, pSymbol, pSeparator)); } /* check to see if string e is a word in string s */ @@ -852,9 +852,9 @@ int i; &pSeparator, &nest); fprintf(f,"\t"); - fprintf(f,strBetween(pDataType, pSymbol, pSeparator)); + fprintf(f, "%s", strBetween(pDataType, pSymbol, pSeparator)); fprintf(f," "); - fprintf(f,strBetween(pSymbol, pEqualSign, pSeparator)); + fprintf(f, "%s", strBetween(pSymbol, pEqualSign, pSeparator)); fprintf(f,";\n"); } fprintf(f,"};\n"); diff --git a/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c b/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c index eb6fba7..508cf6d 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/support/set/set.c @@ -554,7 +554,7 @@ register char *s; static set a; register unsigned *p, *endp; - set_new(a, strlen(s)); + set_new(a, (int)strlen(s)); p = a.setword; endp = &(a.setword[a.n]); do { diff --git a/BaseTools/Source/C/VfrCompile/VfrError.cpp b/BaseTools/Source/C/VfrCompile/VfrError.cpp index 3c506ec..a5d3a11 100644 --- a/BaseTools/Source/C/VfrCompile/VfrError.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrError.cpp @@ -280,7 +280,7 @@ CVfrErrorHandle::HandleWarning ( GetFileNameLineNum (LineNum, &FileName, &FileLine); if (mWarningAsError) { - Error (FileName, FileLine, 0x2220, (CHAR8 *) "warning treated as error", NULL); + Error (FileName, FileLine, 0x2220, (CHAR8 *) "warning treated as error", (CHAR8 *) NULL); } for (Index = 0; mVfrWarningHandleTable[Index].mWarningCode != VFR_WARNING_CODEUNDEFINED; Index++) {