Opened 9 years ago
Closed 9 years ago
#12775 closed bug (fixed)
[Patch] BluetoothServer.cpp: fix gcc6 build
Reported by: | mt | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Servers | Version: | R1/Development |
Keywords: | servers/bluetooth | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
In BluetoothServer::QuitRequested(), gcc6 x86_64 stops build with invalid conversion error, I think RemoveItemAt() may be used instead of RemoveItem() here.
C++ /home/haiku/haiku/haiku/generated64/objects/haiku/x86_64/release/servers/bluetooth/BluetoothServer.o /home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp: In member function 'virtual bool BluetoothServer::QuitRequested()': /home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp:77:32: error: invalid conversion from 'int32 {aka int}' to 'LocalDeviceImpl*' [-fpermissive] fLocalDevicesList.RemoveItem((int32)0)) != NULL) ^~~~~~~~ In file included from /home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.h:11:0, from /home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp:29: /home/haiku/haiku/haiku/headers/os/support/ObjectList.h:510:1: note: initializing argument 1 of 'bool BObjectList<T>::RemoveItem(T*, bool) [with T = LocalDeviceImpl]' BObjectList<T>::RemoveItem(T* item, bool deleteIfOwning) ^~~~~~~~~~~~~~
Attachments (2)
Change History (6)
by , 9 years ago
Attachment: | 0022-BluetoothServer.cpp-fix-gcc6-build.patch added |
---|
comment:1 by , 9 years ago
patch: | 0 → 1 |
---|
follow-up: 3 comment:2 by , 9 years ago
comment:3 by , 9 years ago
by , 9 years ago
Attachment: | 0022-BluetoothServer.cpp-fix-gcc6-build.2.patch added |
---|
Note:
See TracTickets
for help on using tickets.
Is "(int32)" still required?