2018-03-13 16:01:52 +00:00
|
|
|
From d7e380f0ebf2292ddcd534c407483450b74a9f12 Mon Sep 17 00:00:00 2001
|
2017-02-02 20:28:32 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Thu, 2 Feb 2017 15:23:55 -0500
|
2018-03-13 16:01:52 +00:00
|
|
|
Subject: [PATCH 10/22] Work around -Werror=maybe-uninitialized not being very
|
2017-02-02 20:28:32 +00:00
|
|
|
bright.
|
|
|
|
|
2017-02-28 16:55:01 +00:00
|
|
|
The compiler doesn't believe the loop always executes at least once,
|
|
|
|
even though the data in the first array entry doesn't satisfy the exit
|
|
|
|
condition. So just initialize the thing to shut it up.
|
|
|
|
|
2017-02-02 20:28:32 +00:00
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
|
|
|
apps/route80h.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/apps/route80h.c b/apps/route80h.c
|
2018-03-13 16:01:52 +00:00
|
|
|
index e1f62f06824..5272dd3cd44 100644
|
2017-02-02 20:28:32 +00:00
|
|
|
--- a/apps/route80h.c
|
|
|
|
+++ b/apps/route80h.c
|
2018-03-13 16:01:52 +00:00
|
|
|
@@ -93,7 +93,7 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
|
2017-02-02 20:28:32 +00:00
|
|
|
InitializeLib(image_handle, systab);
|
|
|
|
EFI_PCI_IO *pciio = NULL;
|
|
|
|
lpcif_t lpcif;
|
|
|
|
- EFI_STATUS rc;
|
|
|
|
+ EFI_STATUS rc = EFI_SUCCESS;
|
|
|
|
struct {
|
|
|
|
uint16_t vendor;
|
|
|
|
uint16_t device;
|
|
|
|
--
|
2018-03-13 16:01:52 +00:00
|
|
|
2.14.3
|
2017-02-02 20:28:32 +00:00
|
|
|
|