mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
nshlib/nsh_envcmds.c: Fix warning g_oldpwd defined but not used [-Wunused-const-variable]
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user