[haiku-bugs] [Haiku] #12764: [Patch] Ports.cpp: fix gcc6 build

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Sun, 08 May 2016 11:17:07 -0000

#12764: [Patch] Ports.cpp: fix gcc6 build
-----------------------------------------------+---------------------------
 Reporter:  mt                                 |        Owner:  axeld
     Type:  bug                                |       Status:  new
 Priority:  normal                             |    Milestone:  Unscheduled
Component:  Drivers/Graphics/intel_extreme     |      Version:
 Keywords:  add-ons/accelerants/intel_extreme  |  R1/Development
 Blocking:                                     |   Blocked By:
 Platform:  All                                |  Has a Patch:  0
-----------------------------------------------+---------------------------
 Reindent source code, to fix gcc6 '-Werror=misleading-indentation'
 warnings.

 {{{
 C++ /home/haiku/haiku/haiku/generated-gcc6/objects/haiku/x86/release/add-
 ons/accelerants/intel_extreme/Ports.o
 /home/haiku/haiku/haiku/src/add-ons/accelerants/intel_extreme/Ports.cpp:
 In member function 'status_t Port::SetPipe(Pipe*)':
 /home/haiku/haiku/haiku/src/add-
 ons/accelerants/intel_extreme/Ports.cpp:135:5: error: this 'else' clause
 does not guard... [-Werror=misleading-indentation]
      else
      ^~~~
 /home/haiku/haiku/haiku/src/add-
 ons/accelerants/intel_extreme/Ports.cpp:138:2: note: ...this statement,
 but the latter is misleadingly indented as if it is guarded by the 'else'
   fPipe = pipe;
   ^~~~~
 cc1plus: all warnings being treated as errors
 }}}

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

Other related posts: