The below funtion already has the variable declaration as uint8_t. But still why inside the function we need to declare it in different way?
bool cli_cdc_enable(uint8_t port)
{
(void) port;
cdc_connected = true;
return true;
}
The below funtion already has the variable declaration as uint8_t. But still why inside the function we need to declare it in different way?
bool cli_cdc_enable(uint8_t port)
{
(void) port;
cdc_connected = true;
return true;
}
There's no need. This kind of thing is usually to indicate to compiler warnings and lint tools that the variable is deliberately unused. It doesn't have any effect on what the function does.