R0.13 patch 1

July 4, 2017

Some compilers report a warning in the f_setlabel function when
FF_USE_LABEL = 1 and FF_FS_EXFAT = 0.
This commit is contained in:
Christopher Williams
2017-08-15 20:12:12 -07:00
parent 5df4ed1877
commit 1e373ffb3f
+1 -1
View File
@@ -5058,7 +5058,7 @@ FRESULT f_setlabel (
dj.obj.fs = fs;
/* Get length of given volume label */
for (slen = 0; (UINT)label[slen] >= ' '; slen++) ; /* Get name length */
for (slen = 0; (UINT)label[slen] >= ' '; slen++) {} /* Get name length */
#if FF_FS_EXFAT
if (fs->fs_type == FS_EXFAT) { /* On the exFAT volume */