提交 a1d88f43 编写于 作者: M Michael Jones 提交者: Anatolij Gustschin

mv_common.c: get rid of 'defined but not used' warning

When CONFIG_ENV_IS_NOWHERE, got following warning:
mv_common.c:32:14: warning: 'entries_to_keep' defined but not used.
Get rid of this warning.
Signed-off-by: NMichael Jones <michael.jones@matrix-vision.de>
Acked-by: NAndre Schwarz <andre.schwarz@matrix-vision.de>
上级 65f0d121
......@@ -29,6 +29,7 @@
DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_ENV_IS_NOWHERE
static char* entries_to_keep[] = {
"serial#", "ethaddr", "eth1addr", "model_info", "sensor_cnt",
"fpgadatasize", "ddr_size", "use_dhcp", "use_static_ipaddr",
......@@ -38,7 +39,6 @@ static char* entries_to_keep[] = {
#define MV_MAX_ENV_ENTRY_LENGTH 64
#define MV_KEEP_ENTRIES ARRAY_SIZE(entries_to_keep)
#ifndef CONFIG_ENV_IS_NOWHERE
void mv_reset_environment(void)
{
int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册