The model_name array is only used in DEBUG() calls, and will cause a warning (or error depending on -Werror*) in RELEASE mode.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Alan Ott alan@softiron.co.uk --- Drivers/Net/MarvellYukonDxe/if_msk.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/Drivers/Net/MarvellYukonDxe/if_msk.c b/Drivers/Net/MarvellYukonDxe/if_msk.c index 4f9f096..2f10240 100644 --- a/Drivers/Net/MarvellYukonDxe/if_msk.c +++ b/Drivers/Net/MarvellYukonDxe/if_msk.c @@ -171,6 +171,7 @@ static struct msk_product { { VENDORID_DLINK, DEVICEID_DLINK_DGE560T, "D-Link 560T Gigabit Ethernet" } };
+#ifndef MDEPKG_NDEBUG static const CHAR8 *model_name[] = { "Yukon XL", "Yukon EC Ultra", @@ -183,6 +184,7 @@ static const CHAR8 *model_name[] = { "Yukon Unknown", "Yukon Optima", }; +#endif
// // Forward declarations