From: Heyi Guo Date: Thu, 15 Dec 2016 06:49:47 +0000 (+0800) Subject: BaseTools: fix write-strings build warnings X-Git-Tag: edk2-stable201903~4895 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=00de920a0339e78824cdb9015f66c5a98644e0b6;hp=8230d45bba517d78c20634425587efeb6fa14d7c BaseTools: fix write-strings build warnings Fix build warnings of "deprecated conversion from string constant to ?CHAR8* {aka char*}? [-Wwrite-strings]" for BaseTools, while using "gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo Cc: Yonghong Zhu Cc: Liming Gao Reviewed-by: Liming Gao --- diff --git a/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp b/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp index ec73529c20..2be0c385e3 100644 --- a/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp @@ -1365,7 +1365,7 @@ CIfrRecordInfoDB::IfrUpdateRecordInfoForDynamicOpcode ( // Base on the original offset info to update the record list. // if (!IfrAdjustDynamicOpcodeInRecords(CreateOpcodeAfterParsingVfr)) { - gCVfrErrorHandle.PrintMsg (0, "Error", "Can not find the adjust offset in the record."); + gCVfrErrorHandle.PrintMsg (0, (CHAR8 *)"Error", (CHAR8 *)"Can not find the adjust offset in the record."); } //