]> granicus.if.org Git - esp-idf/commit
fatfs: fix errors for GCC 8 support and some indentation
authorAnton Maklakov <anton@espressif.com>
Thu, 24 May 2018 11:29:33 +0000 (19:29 +0800)
committerbot <bot@espressif.com>
Mon, 2 Jul 2018 09:05:00 +0000 (09:05 +0000)
commit714a9bda92009717b4a34045b4300074195e1fe2
tree90eea1c197c95f928165532dd834d9e7bc033e24
parent2a810a318fd1cf2e5768dfe4baf8dbe368be3fd7
fatfs: fix errors for GCC 8 support and some indentation

components/fatfs/src/ff.c: In function 'f_fdisk':
components/fatfs/src/ff.c:5995:5: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
     for (n = 16; n < 256 && sz_disk / n / cluster_size > 1024; n *= 2) ;
     ^~~
components/fatfs/src/ff.c:5996:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  if (n == 256) n--;
  ^~
components/fatfs/src/ff.c