qtconnectivity/config.tests
Alex Blasche 2a52a400d6 Fix bluez config test failure on clang
This compile failure used to be a warning only but these days is a failure
for clang:

> /home/ablasche/dev/qt/qt512/qtconnectivity/config.tests/bluez/main.cpp:36:11: error: taking the address of a temporary object of type 'bdaddr_t' [-Waddress-of-temporary]
>     bacmp(BDADDR_ANY, BDADDR_LOCAL);
>           ^~~~~~~~~~
> /usr/include/bluetooth/bluetooth.h:310:23: note: expanded from macro 'BDADDR_ANY'
> #define BDADDR_ANY   (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/ablasche/dev/qt/qt512/qtconnectivity/config.tests/bluez/main.cpp:36:23: error: taking the address of a temporary object of type 'bdaddr_t' [-Waddress-of-temporary]
>     bacmp(BDADDR_ANY, BDADDR_LOCAL);
>                       ^~~~~~~~~~~~
> /usr/include/bluetooth/bluetooth.h:312:23: note: expanded from macro 'BDADDR_LOCAL'
> #define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 errors generated.

The need for BDADDR_NONE is obsolete now since the test does not rely on
those defines anymore. The main purpose is to check that bluetooth.h
is available which is already tested by using bacmp and bdaddr_t.

Change-Id: I09da4dc5cd3945ffae7819628b45477a52789006
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2018-08-31 07:11:31 +00:00
..
bluez Fix bluez config test failure on clang 2018-08-31 07:11:31 +00:00
bluez_le Convert qtconnectivity to the new configure system 2016-11-01 14:50:29 +00:00
linux_crypto_api Bluetooth LE: Add configure test for Linux crypto API. 2016-02-09 13:59:37 +00:00
winrt_bt Make winrt_bt config test fail on ICC 2018-07-17 05:17:59 +00:00