Re: [edk2] [PATCH] OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning

2017-06-09 Thread Ard Biesheuvel
On 8 June 2017 at 22:18, Laszlo Ersek wrote: > On 06/08/17 21:05, Ard Biesheuvel wrote: >> Commit 4275f38507a4 ("OvmfPkg/AcpiPlatformDxe: alloc blobs from 64-bit >> space unless restricted") introduced a variable which is [incorrectly] >> identified by GCC as being potentially

Re: [edk2] [PATCH] OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning

2017-06-08 Thread Laszlo Ersek
On 06/08/17 21:05, Ard Biesheuvel wrote: > Commit 4275f38507a4 ("OvmfPkg/AcpiPlatformDxe: alloc blobs from 64-bit > space unless restricted") introduced a variable which is [incorrectly] > identified by GCC as being potentially uninitialized. So let's just set > it to NULL before use. > >

[edk2] [PATCH] OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning

2017-06-08 Thread Ard Biesheuvel
Commit 4275f38507a4 ("OvmfPkg/AcpiPlatformDxe: alloc blobs from 64-bit space unless restricted") introduced a variable which is [incorrectly] identified by GCC as being potentially uninitialized. So let's just set it to NULL before use. Contributed-under: TianoCore Contribution Agreement 1.0