From: "Andrew Fish via groups.io" <afish=apple.com@groups.io>
To: edk2-devel-groups-io <devel@edk2.groups.io>, mehdigurel@gmail.com
Subject: Re: [edk2-devel] StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized
Date: Tue, 20 Aug 2024 13:58:09 -0700 [thread overview]
Message-ID: <C0791C66-4874-4256-87E8-C98C6DA67265@apple.com> (raw)
In-Reply-To: <CACs-oBfBo-_huBqtvBADjWmO9Yyngydt8_8C00J0oDV+hCbiMA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]
> On Aug 20, 2024, at 2:26 AM, Mehdi Gürel <mehdigurel@gmail.com> wrote:
>
> In the last changes you made, you set a default bool variable in the else statement. That's why I'm getting a warning message. When I tried changing the compiler flag it didn't work.
>
> export CFLAGS="-O2 -Wall -Wno-error"
>
Does setting the env variable even work?
> Do you have any advice on this subject? Thank you very much in advance.
> edk2-stable202405
>
> /edk2/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/Arm/StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized [-Werror=maybe-uninitialized]
> | 208 | if (FfaEnabled) {
> | | ^
> | /edk2/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/Arm/StandaloneMmCoreEntryPoint.c:127:15: note: ‘FfaEnabled’ was declared here
> | 127 | BOOLEAN FfaEnabled;
> | | ^~~~~~~~~~
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120381): https://edk2.groups.io/g/devel/message/120381
Mute This Topic: https://groups.io/mt/108008399/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 2363 bytes --]
prev parent reply other threads:[~2024-08-20 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 9:26 [edk2-devel] StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized Mehdi Gürel
2024-08-20 20:58 ` Andrew Fish via groups.io [this message]
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=C0791C66-4874-4256-87E8-C98C6DA67265@apple.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