diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-03 11:05:36 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-04 08:47:44 +0800 |
commit | 8e8fd303778822f21a9b6c6a5f59e8213a090fe4 (patch) | |
tree | a3249cd80305126841a8f2f7b6c8701d71ff6001 /OvmfPkg/Virtio10Dxe | |
parent | 817fb3ac2a781d4732d240ad69fb3fb9d44b0e29 (diff) | |
download | edk2-platforms-8e8fd303778822f21a9b6c6a5f59e8213a090fe4.tar.xz |
OvmfPkg/PlatformBootManagerLib: Fix gcc-4.8 Ia32 build failure
The Width and Height assignment suppresses an invalid gcc-4.8 warning
on Ia32.
These warnings look unjustified to me. Namely, near the beginning of
the function, there is a while(1) loop. In that loop,
ConvertBmpToGopBlt() is called unconditionally. If the call fails,
the rest of the loop body is not reached (where the Height and Width
variables are used -- the compiler warns about their use in the
switch statement). If the call succeeds, then the variables are set.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/Virtio10Dxe')
0 files changed, 0 insertions, 0 deletions