Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Conflicting types error

14 views
Skip to first unread message

Wilmer Suarez

unread,
Sep 10, 2024, 1:46:20 PM9/10/24
to ThrowTheSwitch Forums
Trying to mock a function that looks like this:

err_t func((const f_t p[], uint8_t keys[][32], unsigned num_keys);

err_t func(const f_t* p, uint8_t* keys, unsigned num_keys);

Cmock generates the following, causing a “conflicting types” error.

How can I have cmock generates the appropriate signature?

Mark Vander Voord

unread,
Sep 10, 2024, 1:56:17 PM9/10/24
to throwth...@googlegroups.com
Arrays, particularly multidimensional arrays, are a big missing piece of CMock's currently ability to properly mock and parse. We're planning to address this is the following major release (after the release that is in final testing now).

I'm really sorry about this. I know it's a problem! I run into this issue also.

Mark

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/2f082d28-275d-432f-9925-1a7adac50a70n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages