diff options
author | Dandan Bi <dandan.bi@intel.com> | 2018-07-30 09:59:47 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2018-08-01 09:00:41 +0800 |
commit | 7343bc8062c893ed6d40b25a9329d51340e0d703 (patch) | |
tree | fcec2019656d04f59152b5f112a36c137e588ca6 /ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c | |
parent | e6f958d15d710da19dca3fb38943d83f1b3532d6 (diff) | |
download | edk2-7343bc8062c893ed6d40b25a9329d51340e0d703.tar.gz edk2-7343bc8062c893ed6d40b25a9329d51340e0d703.tar.bz2 edk2-7343bc8062c893ed6d40b25a9329d51340e0d703.zip |
ShellPkg/UefiShellAcpiViewCommandLib: Fix GCC build failure
Fix following GCC build issues:
1.
xxx/SratParser.c:127:47: error:
initialization from incompatible pointer type
[-Werror=incompatible-pointer-types]
{L"Proximity Domain [31:8]", 3, 9, L"0x%x", DumpSratApicProximity,
^
xxx/SratParser.c:127:47: note:
(near initialization for 'SratApciSapicAffinityParser[6].PrintFormatter')
2.
xxx\UefiShellAcpiViewCommandLib.c:66:14:
error: 'Status' may be used uninitialized in this fu
nction [-Werror=maybe-uninitialized]
EFI_STATUS Status;
^
cc: Alexei Fedorov <Alexei.Fedorov@arm.com>
cc: Ruiyu Ni <ruiyu.ni@intel.com>
cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c index 043277aabf..e3f5567bec 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c @@ -48,6 +48,7 @@ ValidateSratReserved ( **/
STATIC
VOID
+EFIAPI
DumpSratApicProximity (
IN CONST CHAR16* Format,
IN UINT8* Ptr
@@ -172,6 +173,7 @@ ValidateSratReserved ( **/
STATIC
VOID
+EFIAPI
DumpSratApicProximity (
IN CONST CHAR16* Format,
IN UINT8* Ptr
|