Describe the bug
Norminette considers compound literals an assignment in control structure if and only if you name the variables.
Code in question
typedef struct s_stct
{
int i;
int j;
} t_stct;
int get_res(t_stct s, int a, int b, int c);
//Allowed:
if (get_res((t_stct){val1, val2}, 1, 2, 3) == 1)
return (1);
//Disallowed
if (get_res((t_stct){.i = val1, .j = val2}, 1, 2, 3) == 1)
return (1);
Describe the bug Norminette considers compound literals an assignment in control structure if and only if you name the variables.
Code in question