@@ -102,6 +102,8 @@ int dfs_elm_mount(struct dfs_filesystem *fs, unsigned long rwflag, const void *d
102102 int index ;
103103 struct rt_device_blk_geometry geometry ;
104104 char logic_nbr [2 ] = {'0' ,':' };
105+ (void )rwflag ;
106+ (void )data ;
105107
106108 /* get an empty position */
107109 index = get_disk (RT_NULL );
@@ -476,6 +478,10 @@ int dfs_elm_close(struct dfs_fd *file)
476478
477479int dfs_elm_ioctl (struct dfs_fd * file , int cmd , void * args )
478480{
481+ (void )file ;
482+ (void )cmd ;
483+ (void )args ;
484+
479485 return - ENOSYS ;
480486}
481487
@@ -653,6 +659,8 @@ int dfs_elm_unlink(struct dfs_filesystem *fs, const char *path)
653659 rt_snprintf (drivers_fn , 256 , "%d:%s" , vol , path );
654660#else
655661 const char * drivers_fn ;
662+ (void )fs ;
663+
656664 drivers_fn = path ;
657665#endif
658666
@@ -686,6 +694,7 @@ int dfs_elm_rename(struct dfs_filesystem *fs, const char *oldpath, const char *n
686694 rt_snprintf (drivers_oldfn , 256 , "%d:%s" , vol , oldpath );
687695#else
688696 const char * drivers_oldfn , * drivers_newfn ;
697+ (void )fs ;
689698
690699 drivers_oldfn = oldpath ;
691700 drivers_newfn = newpath ;
@@ -719,6 +728,8 @@ int dfs_elm_stat(struct dfs_filesystem *fs, const char *path, struct stat *st)
719728 rt_snprintf (drivers_fn , 256 , "%d:%s" , vol , path );
720729#else
721730 const char * drivers_fn ;
731+ (void )fs ;
732+
722733 drivers_fn = path ;
723734#endif
724735
@@ -824,12 +835,16 @@ INIT_COMPONENT_EXPORT(elm_init);
824835/* Initialize a Drive */
825836DSTATUS disk_initialize (BYTE drv )
826837{
838+ (void )drv ;
839+
827840 return 0 ;
828841}
829842
830843/* Return Disk Status */
831844DSTATUS disk_status (BYTE drv )
832845{
846+ (void )drv ;
847+
833848 return 0 ;
834849}
835850
0 commit comments