acassis commented on PR #13226:
URL: https://github.com/apache/nuttx/pull/13226#issuecomment-2317828812

   @resyfer please fix the compilation error:
   ```
   Configuration/Tool: sim/nand
   2024-08-28 20:23:32
   
------------------------------------------------------------------------------------
     Cleaning...
     Configuring...
     Building NuttX...
   Error: mtd/mtd_nand.c:82:16: error: 'nand_devscan' declared 'static' but 
never defined [-Werror=unused-function]
      82 | static int     nand_devscan(FAR struct nand_dev_s *nand);
         |                ^~~~~~~~~~~~
   cc1: all warnings being treated as errors
   make[1]: *** [Makefile:102: mtd_nand.o] Error 1
   mtd/mtd_nandram.c: In function 'nand_ram_storage_status':
   Error: mtd/mtd_nandram.c:184:13: error: variable 'bad' set but not used 
[-Werror=unused-but-set-variable]
     184 |   uint8_t   bad;
         |             ^~~
   Error: mtd/mtd_nandram.c:183:13: error: variable 'erases' set but not used 
[-Werror=unused-but-set-variable]
     183 |   uint16_t  erases;
         |             ^~~~~~
   Error: mtd/mtd_nandram.c:182:13: error: variable 'writes' set but not used 
[-Werror=unused-but-set-variable]
     182 |   uint16_t  writes;
         |             ^~~~~~
   Error: mtd/mtd_nandram.c:181:13: error: variable 'reads' set but not used 
[-Werror=unused-but-set-variable]
     181 |   uint16_t  reads;
         |             ^~~~~
   mtd/mtd_nandram.c: At top level:
   Error: mtd/mtd_nandram.c:178:13: error: 'nand_ram_storage_status' defined 
but not used [-Werror=unused-function]
     178 | static void nand_ram_storage_status(void)
         |             ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   ```
   


-- 
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]

Reply via email to