editor syntax warning for [[clears_notification]]

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

editor syntax warning for [[clears_notification]]

Post by CousinItt »

Hi all,

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;
By the way, I'm still using V14.2.4.

Thanks.


robertxmos
XCore Addict
Posts: 169
Joined: Fri Oct 23, 2015 10:23 am

Post by robertxmos »

Hi CousinItt,
I have tried to recreate but am unable to get any warning (even with -Wall).
Could you post a fuller example?
Thank you
robert
Post Reply