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"
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;
| | ^~~~~~~~~~