This is the stupiest compiler error I've ever seen
Code:
list.c:35: error: void value not ignored as it ought to be
This is the code:
Code:
Table *create(void)
{
return NULL;
}
void init(Table **table)
{
clear(table)
*table = create(); // line 35
}
As you can see I'm not passing anything into create(). Tried changing it to create(void)...no luck.
I tried googling it, but most of the results don't pertain to what I'm attempting to do.
I'm using gcc compiler (there is a bug report on it @ http://gcc.gnu.org/ml/gcc-bugs/2003-08/msg01200.html... but the workaround doesn't do any good).