dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
710 stars 326 forks source link

core: Fix -Wmisleading-indentation in ffsMountVol() #93

Closed airend closed 7 years ago

airend commented 7 years ago

Newer toolchains start to pay attention to these formatting issues, which may be treated as errors:

external/exfat-nofuse/exfat_core.c:183:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (sector_read(sb, 0, &tmp_bh, 1) != FFS_SUCCESS)
  ^~
external/exfat-nofuse/exfat_core.c:186:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   p_fs->PBR_sector = 0;