From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by mx.groups.io with SMTP id smtpd.web12.1300.1643835113061509657 for ; Wed, 02 Feb 2022 12:51:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=VILCzW9f; spf=pass (domain: quicinc.com, ip: 129.46.98.28, mailfrom: quic_rcran@quicinc.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643835113; x=1675371113; h=message-id:date:mime-version:to:from:subject; bh=2G3vbk24QDEcBAStLB9moGsJD2yVfX7+O+kE1gio0yY=; b=VILCzW9fibrSRCBq1DOtxd/OV2X66bETtrovKGsowT9nJXvMb+ql/qcP 44Qdijo0WEfItgey5+Kibx0EDF/NL+21i4WTP/pxhUKfRBMBV3FCnnxoZ IRVZlD/U2RUKTKxIEMqO7oJgYGRxeLLdRSMUTPnJRHGZlREhNA4uZEsSG U=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Feb 2022 12:51:52 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 12:51:51 -0800 Received: from nalasex01b.na.qualcomm.com (10.47.209.197) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 2 Feb 2022 12:51:51 -0800 Received: from [10.110.3.55] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 2 Feb 2022 12:51:51 -0800 Message-ID: Date: Wed, 2 Feb 2022 13:51:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 To: Michael D Kinney , Liming Gao , Zhiguang Liu , From: "Rebecca Cran" Subject: MdePkg fails to build in RELEASE mode with clang 13 (CLANG38 toolset) Return-Path: quic_rcran@quicinc.com X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) Content-Type: multipart/alternative; boundary="------------yDWDpU4MMGBjFbp35tLMkKm5" Content-Language: en-US --------------yDWDpU4MMGBjFbp35tLMkKm5 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit With the CLANG38 toolset (clang version 13.0.0) MdePkg fails to build in RELEASE mode because Status is only used by an assert. edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:141:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]  EFI_STATUS  Status;              ^ edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:347:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]  EFI_STATUS  Status;              ^ edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:818:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]  EFI_STATUS  Status; -- Rebecca Cran --------------yDWDpU4MMGBjFbp35tLMkKm5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 8bit
With the CLANG38 toolset (clang version 13.0.0) MdePkg fails to build in RELEASE mode because Status is only used by an assert.

edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:141:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]
 EFI_STATUS  Status;
             ^
edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:347:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]
 EFI_STATUS  Status;
             ^
edk2/MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:818:15: error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]
 EFI_STATUS  Status;

--
Rebecca Cran

--------------yDWDpU4MMGBjFbp35tLMkKm5--