public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Mehdi Gürel" <mehdigurel@gmail.com>
To: devel@edk2.groups.io
Subject: [edk2-devel] StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized
Date: Tue, 20 Aug 2024 12:26:12 +0300	[thread overview]
Message-ID: <CACs-oBfBo-_huBqtvBADjWmO9Yyngydt8_8C00J0oDV+hCbiMA@mail.gmail.com> (raw)

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

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"*
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 (#120380): https://edk2.groups.io/g/devel/message/120380
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: 1663 bytes --]

             reply	other threads:[~2024-08-20 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-20  9:26 Mehdi Gürel [this message]
2024-08-20 20:58 ` [edk2-devel] StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized Andrew Fish via groups.io

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=CACs-oBfBo-_huBqtvBADjWmO9Yyngydt8_8C00J0oDV+hCbiMA@mail.gmail.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