Opened 9 years ago

Closed 9 years ago

#12748 closed bug (fixed)

[Patch] Angle.cpp: fix gcc6 build

Reported by: mt Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Gcc6 warns '-Werror=misleading-indentation', so I reindent source code.

C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/servers/app/Angle.o 
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp: In member function 'Angle Angle::Constrain180()':
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp:228:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     if (value < 0)
     ^~
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp:230:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  return Angle(value);
  ^~~~~~
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp: In member function 'Angle Angle::Constrain90()':
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp:245:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     if (value < 0)
     ^~
/home/haiku/haiku/haiku/src/servers/app/Angle.cpp:247:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  return Angle(value);
  ^~~~~~
cc1plus: all warnings being treated as errors

Attachments (1)

0006-Angle.cpp-fix-gcc6-build.patch (984 bytes ) - added by mt 9 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by mt, 9 years ago

patch: 01

comment:2 by waddlesplash, 9 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.