#12762: [Patch] apps/serialconnect/encoding.c: fix gcc6 build
--------------------------------+------------------------------
Reporter: mt | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications | Version: R1/Development
Keywords: apps/serialconnect | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
--------------------------------+------------------------------
Reindent source code, to fix gcc6 '-Werror=misleading-indentation'
warnings.
{{{
Cc /home/haiku/haiku/haiku/generated-
gcc6/objects/haiku/x86/release/apps/serialconnect/encoding.o
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c: In
function 'decode_utf8':
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:77:11:
error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(data->this_cp < 0x0080) data->this_cp = UNICODE_INVALID;
break;
^~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:77:72:
note: ...this statement, but the latter is misleadingly indented as if it
is guarded by the 'if'
if(data->this_cp < 0x0080) data->this_cp = UNICODE_INVALID;
break;
^~~~~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:79:11:
error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(data->this_cp < 0x0800) data->this_cp = UNICODE_INVALID;
break;
^~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:79:72:
note: ...this statement, but the latter is misleadingly indented as if it
is guarded by the 'if'
if(data->this_cp < 0x0800) data->this_cp = UNICODE_INVALID;
break;
^~~~~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:81:11:
error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(data->this_cp < 0x10000) data->this_cp = UNICODE_INVALID;
break;
^~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:81:72:
note: ...this statement, but the latter is misleadingly indented as if it
is guarded by the 'if'
if(data->this_cp < 0x10000) data->this_cp = UNICODE_INVALID;
break;
^~~~~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:83:11:
error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(data->this_cp < 0x200000) data->this_cp = UNICODE_INVALID;
break;
^~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:83:73:
note: ...this statement, but the latter is misleadingly indented as if it
is guarded by the 'if'
if(data->this_cp < 0x200000) data->this_cp = UNICODE_INVALID;
break;
^~~~~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:85:11:
error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(data->this_cp < 0x4000000) data->this_cp = UNICODE_INVALID;
break;
^~
/home/haiku/haiku/haiku/src/apps/serialconnect/libvterm/src/encoding.c:85:74:
note: ...this statement, but the latter is misleadingly indented as if it
is guarded by the 'if'
if(data->this_cp < 0x4000000) data->this_cp = UNICODE_INVALID;
break;
^~~~~
cc1: all warnings being treated as errors
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12762>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.