[haiku-bugs] [Haiku] #12753: [Patch] DiscoveryAgent.cpp: fix gcc6 build

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Fri, 06 May 2016 11:02:28 -0000

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

 {{{
 C++ /home/haiku/haiku/haiku/generated-
 gcc6/objects/haiku/x86/release/kits/bluetooth/DiscoveryAgent.o
 /home/haiku/haiku/haiku/src/kits/bluetooth/DiscoveryAgent.cpp: In member
 function 'status_t Bluetooth::DiscoveryAgent::StartInquiry(uint32,
 Bluetooth::DiscoveryListener*, bigtime_t)':
 /home/haiku/haiku/haiku/src/kits/bluetooth/DiscoveryAgent.cpp:50:5: error:
 this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (fMessenger == NULL)
      ^~
 /home/haiku/haiku/haiku/src/kits/bluetooth/DiscoveryAgent.cpp:53:2: note:
 ...this statement, but the latter is misleadingly indented as if it is
 guarded by the 'if'
   if (secs < 1 || secs > 61 )
   ^~
 cc1plus: all warnings being treated as errors
 }}}

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

Other related posts: