Opened 4 years ago

Closed 4 years ago

#12771 closed bug (fixed)

[Patch] userlandfs/server/beos/fs_cache.c: gcc6 build fix

Reported by: mt Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: File Systems/UserlandFS Version: R1/Development
Keywords: file_systems/userlandfs/server/beos Cc:
Blocked By: Blocking:
Platform: All


Reindent source code, to fix gcc6 '-Werror=misleading-indentation' warning.

/home/haiku/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c: In function 'flush_cache_ent':
/home/haiku/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c:891:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
/home/haiku/haiku/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c:894:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
  if (chatty_io > 2) printf("flush: %7Ld\n", ce->block_num);
cc1: all warnings being treated as errors

Attachments (1)

0023-fs_cache.c-gcc6-build-fix.patch (1.1 KB ) - added by mt 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 4 years ago

patch: 01

comment:2 by korli, 4 years ago


comment:3 by waddlesplash, 4 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.