Opened 9 years ago
Closed 9 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: | ||
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)
Change History (3)
by , 9 years ago
Attachment: | 0009-DiscoveryAgent.cpp-fix-gcc6-build.patch added |
---|
comment:1 by , 9 years ago
patch: | 0 → 1 |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Applied in hrev50308. Thanks!