nshlib/nsh_parse.c: Replacement implementation for 9defae8af6. This addes conditional compilation on the definition of g_nullstring[] to avoid the warning. Suggested by SUZUKI Y <NBG03015@nifty.ne.jp>

This commit is contained in:
Gregory Nutt 2019-12-19 07:59:30 -06:00
parent 6bfd6166dd
commit 2a462c78aa

View File

@ -222,7 +222,9 @@ static const char g_exitstatus[] = "?";
static const char g_success[] = "0";
static const char g_failure[] = "1";
#endif
#if defined(NSH_HAVE_VARS) || defined(CONFIG_NSH_CMDPARMS)
static const char g_nullstring[] = "";
#endif
/****************************************************************************
* Public Data