Re: [edk2] [patch 1/3] MdeModulePkg/PartitionDxe: Don't use non-constant expression in array

2017-09-11 Thread Ni, Ruiyu
Dandan, Thanks for fixing this. But, why not write code as below? EFI_LBA DescriptorLBAs[4]; DescriptorLBA[0] = 256; DescriptorLBA[1] = EndLBA - 256; ... Thanks/Ray > -Original Message- > From: Bi, Dandan > Sent: Monday, September 11, 2017 1:45 PM > To: edk2-devel@lists.01.org >

[edk2] [patch 1/3] MdeModulePkg/PartitionDxe: Don't use non-constant expression in array

2017-09-10 Thread Dandan Bi
Remove the DescriptorLBAs[] array with non-constant expression to fix non-constant aggregate initializer warning in VS tool chains. Cc: Eric Dong Cc: Paulo Alcantara Cc: Ruiyu Ni Cc: Star Zeng Contributed-under: