Skip to content
Commit c275eaac authored by Marc Herbert's avatar Marc Herbert Committed by Anas Nashif
Browse files

device.h: conditionally remove init braces for C++20 compatibility

Conditionally remove braces for designated initializers of anonymous
unions. This makes it compatible with C++20 while not breaking pre-C11
gcc.

This does for device.h what commit c15f029a ("init.h: restore
designated initializers in SYS_INIT_NAMED()") did for init.h

See https://docs.zephyrproject.org/latest/develop/languages/cpp/

 and
long discussion in #69411 for more obscure C/C++ compatibility details.

Signed-off-by: default avatarMarc Herbert <marc.herbert@intel.com>
parent e04964ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment