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