2018-03-20 20:21:11 +00:00
|
|
|
From e861bb3861cca6c6d7b4d42fa915e9e9fa3dc9fc Mon Sep 17 00:00:00 2001
|
2017-02-02 20:28:32 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
2018-03-20 20:21:11 +00:00
|
|
|
Date: Tue, 13 Mar 2018 15:20:23 -0400
|
|
|
|
Subject: [PATCH 13/25] 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>
|
2018-03-20 20:21:11 +00:00
|
|
|
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
|
2017-02-02 20:28:32 +00:00
|
|
|
---
|
|
|
|
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-20 20:21:11 +00:00
|
|
|
2.15.0
|
2017-02-02 20:28:32 +00:00
|
|
|
|