From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web08.5978.1664849054571323696 for ; Mon, 03 Oct 2022 19:04:14 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Os7mkHej; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: jessyx.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664849054; x=1696385054; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8Kb6bFR1bGioQOSEXm62Mco0hAP0JoZHhwIMyxMPu0Y=; b=Os7mkHej9jenIPJkuFAP8/0R7O7KvEiCEGpKhjFwmgZGwDqE6eaRqQRb xrz5L9HKBEq16tRDMR26B2A9a7OS/uURRkM9LLR4yfXos6JS1CvF5pGOT zZ8iQ2KsdZZpkscpGYr/Qj/sQW+thwXL7/Cl84B4K3w3kvfpHUVB7W7iN mrock0i/ZIP9qPyOVFvsbIGzUOtJdcTlRUIC3d4I97pf1A29YcR9a+5bM UDtx8wVCfBL6dGzcNPjZMizG2lZ/doiJkOIX5Fop2jOgj6GPncn7qcm20 wrFlvzDGfQQSonlysO50HpIVMjWwtXaCn7sRr6uS3+y52aKW2LE6MYFn+ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="301527721" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="301527721" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2022 19:04:08 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="626017115" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="626017115" Received: from jessywux-mobl2.gar.corp.intel.com ([10.225.32.177]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2022 19:04:07 -0700 From: "JessyX Wu" To: devel@edk2.groups.io Cc: JessyX Wu , Bob Feng , Liming Gao , Yuwei Chen Subject: [PATCH v3] remove GCC build warning Date: Tue, 4 Oct 2022 10:03:54 +0800 Message-Id: X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix gcc: warning: -x c after last input file has no effect These kind of flag can only affect the source code after them. For the build command in build_rule.template, we have no other source code or object after these two flag. It seems we don't need them here. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: JessyX Wu --- BaseTools/Conf/build_rule.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 5895b48fd8..af4819de92 100755 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -463,7 +463,7 @@ "$(ASLCC)" $(DEPS_FLAGS) -c -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(DEPS_FLAGS) $(INC) ${src} - "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) + "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS) -- 2.37.3.windows.1