From patchwork Thu Dec 15 06:49:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 88117 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp630892qgi; Wed, 14 Dec 2016 22:51:42 -0800 (PST) X-Received: by 10.98.52.71 with SMTP id b68mr832620pfa.18.1481784702687; Wed, 14 Dec 2016 22:51:42 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id d4si908642pfb.185.2016.12.14.22.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2016 22:51:42 -0800 (PST) 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=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6F58181EAE; Wed, 14 Dec 2016 22:51:42 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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: [edk2] [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: , Cc: Heyi Guo , Liming Gao Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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."); } //