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)
Change History (3)
by , 9 years ago
Attachment: | 0006-Angle.cpp-fix-gcc6-build.patch added |
---|
comment:1 by , 9 years ago
patch: | 0 → 1 |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Applied in hrev50308. Thanks!