nshlib/nsh_envcmds.c: Fix warning g_oldpwd defined but not used [-Wunused-const-variable]

This commit is contained in:
Xiang Xiao 2018-11-07 11:28:28 -06:00 committed by Gregory Nutt
parent 6aee984c91
commit 2db0252e61

View File

@ -56,7 +56,9 @@
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_ENVIRON)
static const char g_pwd[] = "PWD";
#ifndef CONFIG_NSH_DISABLE_CD
static const char g_oldpwd[] = "OLDPWD";
#endif
static const char g_home[] = CONFIG_LIB_HOMEDIR;
#endif