public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <quic_rcran@quicinc.com>
To: Michael D Kinney <michael.d.kinney@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Zhiguang Liu <zhiguang.liu@intel.com>, <devel@edk2.groups.io>
Subject: MdePkg fails to build in RELEASE mode with clang 13 (CLANG38 toolset)
Date: Wed, 2 Feb 2022 13:51:49 -0700	[thread overview]
Message-ID: <a95f4d3e-0d16-f61d-28e1-39e39b1fc494@quicinc.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1278 bytes --]

             reply	other threads:[~2022-02-02 20:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02 20:51 Rebecca Cran [this message]
2022-02-02 21:18 ` MdePkg fails to build in RELEASE mode with clang 13 (CLANG38 toolset) Michael D Kinney
2022-02-03  2:01   ` [edk2-devel] " Andrew Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a95f4d3e-0d16-f61d-28e1-39e39b1fc494@quicinc.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox