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/25 09:18:42 UTC

[nuttx-apps] 01/02: Revert "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

commit 1668c3e97dd6e4397bf5d64dae6caf94ecb4900a
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Thu Aug 24 13:20:08 2023 +0300

    Revert "nshlib/nsh_timcmds.c: Suppress warning about unused variable (errfmt)"
    
    This reverts commit 4ca9b518fa9923c1af9c120eafbac59359874e13.
---
 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 20681e488..19d53ebc1 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 unused_data;
+  FAR const char *errfmt;
   bool utc = false;
   int option;
   int ret;