I'm getting a syntax warning for this interface, but it builds cleanly, without any relevant compiler warnings. If I remove the [[clears_notification]], or change the return signature of receive_command() to a single uint32_t, the warning goes away.
Is there a more acceptable way to use this attribute for functions with multiple returns?
Code: Select all
typedef interface rx_interface
{
[[notification]] slave void data_ready(void);
[[clears_notification]] {uint32_t, uint32_t} receive_command(void);
[[clears_notification]] void receive_data(uint32_t rx_data[n], unsigned n);
void update_mode(scip_mode m);
} rx_interface;
Thanks.