zephyr/include/bluetooth
Peter A. Bigot 2802fa4e6d treewide: avoid address-of-compound-literal idiom in headers
In C99 the construct (T){init-list} is called a compound literal, and
is an lvalue.  In C++ it is simply a cast expression to non-rvalue
type, which is a prvalue.  In both languages the expression is a
temporary, but in C99 taking its address is well-defined while in C++
it is an error diagnosed as "taking address of temporary".

Headers that may be used in C++ application code must avoid invalid
expressions.  Replace all uses of &(T){init-list} in headers with the
functionally equivalent but C++-legal (T[]){{init-list}}.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-12-18 21:53:17 +01:00
..
mesh bluetooth: doc: Cleanup warnings with doc build 2019-12-12 12:39:35 -06:00
services doc: fix misspelling in API doxygen comments 2019-10-29 06:00:14 +01:00
a2dp-codec.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
a2dp.h include/bluetooth: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
addr.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
att.h include/bluetooth: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
avdtp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
bluetooth.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
buf.h Bluetooth: Deprecate and fix BT_BUF_USER_DATA_MIN 2019-11-28 13:35:11 +02:00
conn.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
controller.h Bluetooth: Controller: Add support for setting public address 2018-09-21 12:40:10 +02:00
crypto.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gap.h Bluetooth: Host: Move GAP and GAP defined assigned numbers to own header 2019-10-17 10:04:06 +02:00
gatt.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
hci.h Bluetooth: HCI: Add utility to extract PB and BC flags from data header 2019-12-11 12:34:34 +02:00
hci_err.h Bluetooth: Host: Move HCI error codes to its own header 2019-10-17 10:04:06 +02:00
hci_raw.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
hci_vs.h Bluetooth: controller: enable dynamic TXP over LL_SPLIT arch (#17731) 2019-12-17 12:29:57 +01:00
hfp_hf.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
l2cap.h Bluetooth: L2CAP: Introduce BT_L2CAP_STATUS_SHUTDOWN flag 2019-12-13 15:30:28 +02:00
mesh.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
rfcomm.h include/bluetooth: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
sdp.h include/bluetooth: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
testing.h Bluetooth: testing: Exclude Mesh related code if BT_MESH not set 2018-09-19 10:48:39 +03:00
uuid.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00