diff options
author | Lubomir I. Ivanov <lubomirivanov@vmware.com> | 2019-02-11 02:08:53 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2019-02-13 14:17:42 +0000 |
commit | 5a2c8a39d76d634161e87b1c55d36cbbcc778289 (patch) | |
tree | b5b5e18600ac5eddc53b24c6903d843a70fc75b8 /src/bluetooth/qbluetoothserver_bluez.cpp | |
parent | 56c5b16dc1a394c72a004b71a9f5364059630d6c (diff) |
win32-bt: fix warnings related to comparisons and initializers
Silence a couple of type of warnings:
1)
warning: missing initializer for member '_BLUETOOTH_DEVICE_INFO::Address'
[-Wmissing-field-initializers]
BLUETOOTH_DEVICE_INFO deviceInfo = {0};
Unlike C, C++ is not happy about this type of initializer
Use '{}' instead to init all members to zero or 'NULL' properly.
2)
warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
if (socket != INVALID_SOCKET) {
'socket' is defined as 'int', while 'INVALID_SOCKET' is derived from
'SOCKET' which is of type UINT. Cast 'socket' to 'SOCKET' before
performing the comparison.
Change-Id: I9fcbff1c60ae36b8a8fed63382a8ffc0157f4923
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_bluez.cpp')
0 files changed, 0 insertions, 0 deletions