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
services
a2dp-codec.h
a2dp.h
addr.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
att.h
avdtp.h
bluetooth.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
buf.h
conn.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
controller.h
crypto.h
gap.h
gatt.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00
hci_err.h
hci_raw.h
hci_vs.h Bluetooth: controller: enable dynamic TXP over LL_SPLIT arch (#17731) 2019-12-17 12:29:57 +01:00
hci.h
hfp_hf.h
l2cap.h Bluetooth: L2CAP: Introduce BT_L2CAP_STATUS_SHUTDOWN flag 2019-12-13 15:30:28 +02:00
mesh.h
rfcomm.h
sdp.h
testing.h
uuid.h treewide: avoid address-of-compound-literal idiom in headers 2019-12-18 21:53:17 +01:00