nshlib/nsh_envcmds.c: Fix warning g_oldpwd defined but not used [-Wunused-const-variable]
This commit is contained in:
parent
6aee984c91
commit
2db0252e61
@ -56,7 +56,9 @@
|
|||||||
|
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_ENVIRON)
|
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_ENVIRON)
|
||||||
static const char g_pwd[] = "PWD";
|
static const char g_pwd[] = "PWD";
|
||||||
|
#ifndef CONFIG_NSH_DISABLE_CD
|
||||||
static const char g_oldpwd[] = "OLDPWD";
|
static const char g_oldpwd[] = "OLDPWD";
|
||||||
|
#endif
|
||||||
static const char g_home[] = CONFIG_LIB_HOMEDIR;
|
static const char g_home[] = CONFIG_LIB_HOMEDIR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user