From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 612E881E0C for ; Wed, 14 Dec 2016 22:51:41 -0800 (PST) Received: by mail-pf0-x22c.google.com with SMTP id 189so7679857pfz.3 for ; Wed, 14 Dec 2016 22:51:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UxkYXRrbCbBCUyTvdgm1vT7/jJpyN2ZMpYV4nLkPh7E=; b=PLyYuoy0pNThRQRdHcF//WQc8rghWnh60SrDlW1PJXQIR2tUPUTR7D0bBS5Kl2UJ9e jgxL2DnvncmjjsRPEpVPeqG/KbKDzKn53VMPrj8fIsO2JbxqAd4hwvU0HveDXDfZpAEC 0DEKbQNXqjVGImGi8Txvm4J7XWZnmdrf07hQ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UxkYXRrbCbBCUyTvdgm1vT7/jJpyN2ZMpYV4nLkPh7E=; b=n2TM8g5cUc5cgsNreWzHz5Wu2aMXA/deiios5RL2szwG/FOWoHrmgF5oM+TUfvROoW fovWqemWhA+o+guJCmXirYLoIk0mX3dVXwCJIVctv/PDWI7sknUR2wHwPnhQZTZ2pkBG 9IKDb/nAbJxx1ju6q/14hmbG5m5VMGnDRP4teH/QI1pU4J14eotd3pbPYdO36bzv5M0A HUol2cBAZxcT+LAG5jKXZdzWSqj35IPTavwuUee53iti2av85Ie4ftRRGdZrKgImrQ2N 36mJ+e7t72vPvIUKRr9eVmlzi1Gx/zl20SDJwTbNK2hi166J8n+8zkP3aIUAGTdqRaAq HqHQ== X-Gm-Message-State: AKaTC01tFD/O0xqua78hCMx+iHAwCnps58eNJPy6P61lwHmYjsle258Y1GUvNy+J3yzlKnHP X-Received: by 10.84.175.234 with SMTP id t97mr1728804plb.145.1481784700809; Wed, 14 Dec 2016 22:51:40 -0800 (PST) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id y89sm1377007pfk.83.2016.12.14.22.51.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Dec 2016 22:51:40 -0800 (PST) From: Heyi Guo To: edk2-devel@lists.01.org Cc: Heyi Guo , Yonghong Zhu , Liming Gao Date: Thu, 15 Dec 2016 14:49:47 +0800 Message-Id: <1481784588-35336-4-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481784588-35336-1-git-send-email-heyi.guo@linaro.org> References: <1481784588-35336-1-git-send-email-heyi.guo@linaro.org> MIME-Version: 1.0 Subject: [PATCH 3/4] BaseTools: fix write-strings build warnings X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 06:51:41 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp b/BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp index ec73529..2be0c38 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."); } // -- 1.9.1