#12771: [Patch] userlandfs/server/beos/fs_cache.c: gcc6 build fix
-------------------------------------------------+-------------------------
Reporter: mt | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone:
Component: File Systems/UserlandFS | Unscheduled
Keywords: file_systems/userlandfs/server/beos | Version:
Blocking: | R1/Development
Platform: All | Blocked By:
| Has a Patch: 0
-------------------------------------------------+-------------------------
Reindent source code, to fix gcc6 '-Werror=misleading-indentation'
warning.
{{{
userlandfs/server/beos/fs_cache.o
/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]
else
^~~~
/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
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12771>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.