I have this code:
#include <stdint.h>
void something(float a);
int main()
{
uint8_t a = 28;
something(a);
return 0;
}
void something(float a)
{
printf("%f\n", a);
}
I am using a similar function to log variables of different types to a file and I would like to get an error/warning message since I am calling function something with a wrong argument type (uint8_t instead of float).
How can I achieve this?