You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
950 B
31 lines
950 B
From 6f5781e191cca6c20a75b82cc467c2256cbb5901 Mon Sep 17 00:00:00 2001 |
|
From: Peter Jones <pjones@redhat.com> |
|
Date: Thu, 2 Feb 2017 15:23:55 -0500 |
|
Subject: [PATCH 04/10] Work around -Werror=maybe-uninitialized not being very |
|
bright. |
|
|
|
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. |
|
|
|
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 |
|
index 723dd85..bf550a1 100644 |
|
--- a/apps/route80h.c |
|
+++ b/apps/route80h.c |
|
@@ -102,7 +102,7 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab) |
|
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; |
|
-- |
|
2.9.3 |
|
|
|
|