From 8e7ed15ccee08e6f90f6a0b619267d04b0f521b6 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Tue, 7 Mar 2017 15:36:18 -0600 Subject: [PATCH] NSHLIB uname command: Eliminate 'defined but not used' warning in some configurations --- nshlib/nsh_syscmds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c index b7be7bcda..0458861ae 100644 --- a/nshlib/nsh_syscmds.c +++ b/nshlib/nsh_syscmds.c @@ -86,7 +86,9 @@ * Private Data ****************************************************************************/ +#ifndef CONFIG_NSH_DISABLE_UNAME static const char g_unknown[] = "unknown"; +#endif /**************************************************************************** * Public Functions