[haiku-bugs] [Haiku] #12757: [Patch] debugger: fix gcc6 build

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Sat, 07 May 2016 10:32:47 -0000

#12757: [Patch] debugger: fix gcc6 build
-----------------------------------+------------------------------
 Reporter:  mt                     |        Owner:  anevilyak
     Type:  bug                    |       Status:  new
 Priority:  normal                 |    Milestone:  Unscheduled
Component:  Applications/Debugger  |      Version:  R1/Development
 Keywords:                         |   Blocked By:
 Blocking:                         |  Has a Patch:  0
 Platform:  All                    |
-----------------------------------+------------------------------
 Reindent source code, to fix gcc6 '-Werror=misleading-indentation'
 warnings.

 {{{
 
/home/haiku/haiku/haiku/src/apps/debugger/debugger_interface/interfaces/LocalDebuggerInterface.cpp:
 In member function 'virtual status_t
 LocalDebuggerInterface::GetNextDebugEvent(DebugEvent*&)':
 
/home/haiku/haiku/haiku/src/apps/debugger/debugger_interface/interfaces/LocalDebuggerInterface.cpp:378:5:
 error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (message.origin.thread >= 0 && message.origin.nub_port >= 0)
      ^~
 
/home/haiku/haiku/haiku/src/apps/debugger/debugger_interface/interfaces/LocalDebuggerInterface.cpp:381:6:
 note: ...this statement, but the latter is misleadingly indented as if it
 is guarded by the 'if'
       if (error != B_OK)
       ^~
 cc1plus: all warnings being treated as errors

 C++ /home/haiku/haiku/haiku/generated-
 gcc6/objects/haiku/x86/release/apps/debugger/SettingsMenu.o
 
/home/haiku/haiku/haiku/src/apps/debugger/user_interface/gui/util/SettingsMenu.cpp:
 In member function 'virtual void
 SettingsMenuImpl::OptionsMenuItem::PrepareToShow(BLooper*, BHandler*,
 Settings*)':
 
/home/haiku/haiku/haiku/src/apps/debugger/user_interface/gui/util/SettingsMenu.cpp:182:4:
 error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     if (optionItem != NULL)
     ^~
 
/home/haiku/haiku/haiku/src/apps/debugger/user_interface/gui/util/SettingsMenu.cpp:186:5:
 note: ...this statement, but the latter is misleadingly indented as if it
 is guarded by the 'if'
      optionItem->SetMarked(optionItem->Option() == selectedOption);
      ^~~~~~~~~~
 cc1plus: all warnings being treated as errors
 }}}

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

Other related posts: