audk/ShellPkg/Library
Mike Maslenkin 254937f0bc ShellPkg: fix warnings about uninitialized variable
Dmem.c: In function 'GetImageExecutionInfo':
Dmem.c:241:10: error: 'Status' may be used uninitialized
  in this function [-Werror=maybe-uninitialized]
   return Status;
          ^~~~~~
Dmem.c:284:35: note: 'Status' was declared here
   EFI_STATUS                      Status;
                                   ^~~~~~
Dmem.c: In function 'ShellCommandRunDmem':
Dmem.c:586:27: error: 'ConformanceProfileTableAddress' may be used
  uninitialized in this function [-Werror=maybe-uninitialized]

ShellStatus = DisplayConformanceProfiles (ConformanceProfileTableAddress);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dmem.c:582:27: error: 'ImageExecutionTableAddress' may be used
  uninitialized in this function [-Werror=maybe-uninitialized]

ShellStatus = DisplayImageExecutionEntries (ImageExecutionTableAddress);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dmem.c:578:27: error: 'RtPropertiesTableAddress' may be used
  uninitialized in this function [-Werror=maybe-uninitialized]

ShellStatus = DisplayRtProperties (RtPropertiesTableAddress);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
2025-01-29 17:20:57 +01:00
..
UefiHandleParsingLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellAcpiViewCommandLib ShellPkg: AcpiView: TPM2 parser for Arm FF-A 2025-01-09 12:41:19 +08:00
UefiShellBcfgCommandLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellCEntryLib ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiShellCommandLib ShellPkg: UefiShellCommandLib: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellDebug1CommandsLib ShellPkg: fix warnings about uninitialized variable 2025-01-29 17:20:57 +01:00
UefiShellDriver1CommandsLib command drvcfg ASSERT 2025-01-24 10:02:23 +00:00
UefiShellInstall1CommandsLib ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellLevel1CommandsLib ShellPkg: UefiShellCommandLib: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellLevel2CommandsLib ShellPkg/UefiShellLevel2CommandsLib: Add helper for reset -fwui option 2024-12-09 17:16:58 +00:00
UefiShellLevel3CommandsLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00
UefiShellLib ShellPkg/UefiShellLib: Accept "0 " as valid numeric string 2024-12-16 18:34:43 +00:00
UefiShellNetwork1CommandsLib ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellNetwork2CommandsLib ShellPkg: CodeQL Fixes 2024-10-29 02:09:18 +00:00