pussuw commented on code in PR #1987:
URL: https://github.com/apache/nuttx-apps/pull/1987#discussion_r1303476899
##########
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;
Review Comment:
The way the nsh_error macro expands when CONFIG_NSH_DISABLE_ERROR_PRINT is
set (it gets set if DEFAULT_SMALL), this does produce an unused variable error:
https://github.com/apache/nuttx-apps/blob/77e6c39cbd4758e2b6c7994cf266a9326cbfecb7/nshlib/nsh_console.h#L61-L68
AFAIK there is no clean way to suppress the error as nsh_error is a variadic
function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]