[haiku-bugs] [Haiku] #12766: [Patch] accelerants/radeon: fix gcc6 build

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Mon, 09 May 2016 02:19:11 -0000

#12766: [Patch] accelerants/radeon: fix gcc6 build
-------------------------------------+------------------------------
 Reporter:  mt                       |        Owner:  euan
     Type:  bug                      |       Status:  new
 Priority:  normal                   |    Milestone:  Unscheduled
Component:  Drivers/Graphics/radeon  |      Version:  R1/Development
 Keywords:                           |   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/add-
 ons/accelerants/radeon/Cursor.o
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/Cursor.c: In
 function 'moveOneCursor':
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/Cursor.c:193:5:
 error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if( y < 0 )
      ^~
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/Cursor.c:196:2:
 note: ...this statement, but the latter is misleadingly indented as if it
 is guarded by the 'if'
   if( crtc_idx == 0 ) {
   ^~
 cc1: all warnings being treated as errors

 Cc /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-
 ons/accelerants/radeon/impactv.o
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/impactv.c: In
 function 'Radeon_CalcImpacTVRegisters':
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/impactv.c:512:5:
 error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if( !internal_encoder )
      ^~
 /home/haiku/haiku/haiku/src/add-ons/accelerants/radeon/impactv.c:515:2:
 note: ...this statement, but the latter is misleadingly indented as if it
 is guarded by the 'if'
   values->tv_htotal = mode->timing.h_total - 1;
   ^~~~~~
 cc1: all warnings being treated as errors
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/12766>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: