mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
RedfishPkg: RedfishDiscoverDxe: fix compilation warning
/RedfishDiscoverDxe.c:1979:37: error: 'RestExInstance' may be used uninitialized in this function [-Werror=maybe-uninitialized] RestExInstance->Signature = EFI_REDFISH_DISCOVER_DATA_SIGNATURE; cc1: all warnings being treated as errors Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
parent
2ddce71142
commit
c9a59facd8
@ -1855,6 +1855,7 @@ BuildupNetworkInterface (
|
|||||||
ListCount = (sizeof (mRequiredProtocol) / sizeof (REDFISH_DISCOVER_REQUIRED_PROTOCOL));
|
ListCount = (sizeof (mRequiredProtocol) / sizeof (REDFISH_DISCOVER_REQUIRED_PROTOCOL));
|
||||||
NewNetworkInterfaceInstalled = FALSE;
|
NewNetworkInterfaceInstalled = FALSE;
|
||||||
Index = 0;
|
Index = 0;
|
||||||
|
RestExInstance = NULL;
|
||||||
|
|
||||||
for (Index = 0; Index < ListCount; Index++) {
|
for (Index = 0; Index < ListCount; Index++) {
|
||||||
Status = gBS->OpenProtocol (
|
Status = gBS->OpenProtocol (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user