From ce68d3bc68eda5ce919b90aea8db094ed4b64c34 Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Thu, 11 Oct 2012 02:15:23 +0000 Subject: Add missing braces around initializer. Signed-off-by: Star Zeng Reviewed-by: Jaben Carsey Reviewed-by: Qian Ouyang Reviewed-by: Ruiyu Ni Reviewed-by: Feng Tian Reviewed-by: Jeff Fan git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13817 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'OvmfPkg/EmuVariableFvbRuntimeDxe') diff --git a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c index c1f46a7d9d..72efba0910 100644 --- a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c +++ b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c @@ -655,14 +655,17 @@ InitializeFvAndVariableStoreHeaders ( 0, // UINT8 Reserved[1]; - 0, + {0}, // UINT8 Revision; EFI_FVH_REVISION, // EFI_FV_BLOCK_MAP_ENTRY BlockMap[1]; - { 2, // UINT32 NumBlocks; - EMU_FVB_BLOCK_SIZE // UINT32 Length; + { + { + 2, // UINT32 NumBlocks; + EMU_FVB_BLOCK_SIZE // UINT32 Length; + } } }, // EFI_FV_BLOCK_MAP_ENTRY EndBlockMap; @@ -721,14 +724,17 @@ InitializeFvAndVariableStoreHeaders ( 0, // UINT8 Reserved[1]; - 0, + {0}, // UINT8 Revision; EFI_FVH_REVISION, // EFI_FV_BLOCK_MAP_ENTRY BlockMap[1]; - { 2, // UINT32 NumBlocks; - EMU_FVB_BLOCK_SIZE // UINT32 Length; + { + { + 2, // UINT32 NumBlocks; + EMU_FVB_BLOCK_SIZE // UINT32 Length; + } } }, // EFI_FV_BLOCK_MAP_ENTRY EndBlockMap; -- cgit v1.2.3