Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37600312
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: gnu-efi-3.0.5

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0004-Work-around-Werror-maybe-uninitialized-not-being-ver.patch
Скачать


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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin