Opened 3 years ago

Closed 3 years ago

#12753 closed bug (fixed)

[Patch] DiscoveryAgent.cpp: fix gcc6 build

Reported by: mt Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits Version: R1/Development
Keywords: kits/bluetooth Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

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

Attachments (1)

0009-DiscoveryAgent.cpp-fix-gcc6-build.patch (892 bytes ) - added by mt 3 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by mt, 3 years ago

Has a Patch: set

comment:2 by waddlesplash, 3 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50308. Thanks!

Note: See TracTickets for help on using tickets.