B
Billy Mays
Periodically I see code that looks similar to this:
void do_something(int a, int b)
{
(void) b;
printf("A is %d\n", a);
}
What does this typecast do? Running code like this through lint
complains the "(void) b" statement does nothing. Any thoughts?
void do_something(int a, int b)
{
(void) b;
printf("A is %d\n", a);
}
What does this typecast do? Running code like this through lint
complains the "(void) b" statement does nothing. Any thoughts?