Only when he pass function with wrong signature:MicroController wrote: ↑Mon Mar 25, 2024 8:29 pm
To Sonar it does matter, as it tells us "Either add a parameter list or the "&" operator to this use of "HELLO_TASK"." If you have a better idea, please share.
But like i said, i have no idea about SonarLint.zazas321 wrote: It is still not clear to me how can I avoid this warning.
I have tried to declare my task with const void* param as shown below:
This time, I am getting another warning:Code: Select all
static void HELLO_TASK(const void *param) { UNUSED(param); for (;;) { printf("This is normal message1 without ANSI color code \n"); vTaskDelay(1000 / portTICK_PERIOD_MS); } }
Code: Select all
Either add a parameter list or the "&" operator to this use of "HELLO_TASK".