[riot-notifications] [RIOT-OS/RIOT] drivers/at24cxxx: at24cxxx_params.h doesn't compile in C++ (#16589)

Nicolas notifications at github.com
Mon Jun 28 10:14:32 CEST 2021

Hello everyone,

#### Description

 Cannot compile _drivers/at24cxxx/include/at24cxxx_params.h_ while using C++ because of at24cxxx_params initialization. 
RIOT/drivers/at24cxxx/include/at24cxxx_params.h:96:1: sorry, unimplemented: non-trivial designated initializers not supported
Problem is there's no missing fields at initialization in the structure but they're not in the right order, so G++ can't understand it. A problem that I have not encountered while using other various drivers because the parameter structures are initialized correctly.

Fix for is very simple but I can never remember if we are supposed to open a bug repport issue in riot's github or we can go straight ahead and open a PR. 

#### Steps to reproduce the issue

Include at24cxxx driver in a C++ project and compile. 

Have a good day

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210628/a5875723/attachment.htm>

More information about the notifications mailing list