You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/22 16:17:32 UTC
[nuttx-apps] branch master updated: nshlib/nsh_timcmds.c: Suppress warning about unused variable (errfmt)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new b65b577ad nshlib/nsh_timcmds.c: Suppress warning about unused variable (errfmt)
b65b577ad is described below
commit b65b577ad338973170954dbbebd86e949e43a5fa
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Tue Aug 22 16:17:17 2023 +0300
nshlib/nsh_timcmds.c: Suppress warning about unused variable (errfmt)
Fixes following warning:
CC: grp/lib_getgrbufr.c nsh_timcmds.c: In function 'cmd_date':
nsh_timcmds.c:370:19: warning: variable 'errfmt' set but not used [-Wunused-but-set-variable]
370 | FAR const char *errfmt;
|
---
nshlib/nsh_timcmds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nshlib/nsh_timcmds.c b/nshlib/nsh_timcmds.c
index 19d53ebc1..20681e488 100644
--- a/nshlib/nsh_timcmds.c
+++ b/nshlib/nsh_timcmds.c
@@ -367,7 +367,7 @@ int cmd_time(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
int cmd_date(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{
FAR char *newtime = NULL;
- FAR const char *errfmt;
+ FAR const char *errfmt unused_data;
bool utc = false;
int option;
int ret;