aboutsummaryrefslogtreecommitdiff
path: root/Drivers
diff options
context:
space:
mode:
authorAlan Ott <alan@softiron.co.uk>2016-08-25 18:39:40 -0400
committerLeif Lindholm <leif.lindholm@linaro.org>2016-08-26 16:44:36 +0100
commita6e672c7fb8d6bc2861991d22183658ca721889c (patch)
tree96134773ff4a66765f88d43b128bfc95ce2fd58c /Drivers
parent15e401058d1d9062ad697248a919e081bcb20335 (diff)
Drivers/Net/MarvellYukon: Put model_name under MDEPKG_NDEBUG ifndef
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> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Drivers')
-rw-r--r--Drivers/Net/MarvellYukonDxe/if_msk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Drivers/Net/MarvellYukonDxe/if_msk.c b/Drivers/Net/MarvellYukonDxe/if_msk.c
index 4f9f096..29d6635 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