mirror of https://github.com/acidanthera/audk.git
OvmfPkg: add missing braces to aggregate and/or union initializers
Lack of these braces causes build errors when -Wno-missing-braces is absent. Spelling out more braces also helps understanding the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15586 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ffccb935fa
commit
84043adfe2
|
@ -90,17 +90,21 @@ EFI_FVB_MEDIA_INFO mPlatformFvbMediaInfo[] = {
|
|||
}, // Reserved[1]
|
||||
2, // Revision
|
||||
{
|
||||
(FixedPcdGet32 (PcdFlashNvStorageVariableSize) +
|
||||
FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) +
|
||||
FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) +
|
||||
FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) / FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
|
||||
FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
|
||||
}
|
||||
{
|
||||
(FixedPcdGet32 (PcdFlashNvStorageVariableSize) +
|
||||
FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) +
|
||||
FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) +
|
||||
FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) / FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
|
||||
FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
|
||||
}
|
||||
} // BlockMap[1]
|
||||
},
|
||||
{
|
||||
0,
|
||||
0
|
||||
}
|
||||
{
|
||||
0,
|
||||
0
|
||||
}
|
||||
} // End[1]
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue