thradams / cake

Cake a C23 front end and transpiler written in C
http://thradams.com/cake/index.html
GNU General Public License v3.0
533 stars 21 forks source link

nodiscard not working #157

Open thradams opened 6 months ago

thradams commented 6 months ago

struct parser_ctx{int x;};
enum token_type type {A};

[[nodiscard]]
int parser_match_tk(struct parser_ctx* ctx, enum token_type type)
{
}

void call(void) 
{
  struct parser_ctx ctx;
  parser_match_tk(&ctx, A);
}