public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] StandaloneMmCoreEntryPoint.c:208:8: error: ‘FfaEnabled’ may be used uninitialized
@ 2024-08-20  9:26 Mehdi Gürel
  2024-08-20 20:58 ` Andrew Fish via groups.io
  0 siblings, 1 reply; 2+ messages in thread
From: Mehdi Gürel @ 2024-08-20  9:26 UTC (permalink / raw)
  To: devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-20 20:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox