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/01/30 02:59:13 UTC

[nuttx-apps] branch master updated: Fixed compiler warnings in dd.

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 464607dc9 Fixed compiler warnings in dd.
464607dc9 is described below

commit 464607dc9027409d230c301b2dabe3b4e73a033f
Author: Fotis Panagiotopoulos <f....@gmail.com>
AuthorDate: Sun Jan 29 21:40:51 2023 +0200

    Fixed compiler warnings in dd.
---
 nshlib/nsh_ddcmd.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nshlib/nsh_ddcmd.c b/nshlib/nsh_ddcmd.c
index 3890616e8..f9ac66901 100644
--- a/nshlib/nsh_ddcmd.c
+++ b/nshlib/nsh_ddcmd.c
@@ -188,9 +188,12 @@ static int dd_verify(FAR const char *infile, FAR const char *outfile,
                      FAR struct dd_s *dd)
 {
   FAR uint8_t *buffer;
-  int sector = 0;
+  unsigned sector = 0;
   int ret = OK;
 
+  UNUSED(infile);
+  UNUSED(outfile);
+
   ret = lseek(dd->infd, dd->skip ? dd->skip * dd->sectsize : 0, SEEK_SET);
   if (ret < 0)
     {