J
Joe
If anyone can help me resolve the following gcc error, it would be
appreciated. I am receiving this warning for writing this self-referential
structure. Thanx in advance
test.c:8: warning: useless keyword or type name in empty declaration
/***************************************************/
#include <stdio.h>
#include <stdlib.h>
typedef struct list_node * list_pointer;
typedef struct list_node {
int dummy;
list_pointer link;
};
int main(void)
{
list_pointer ptr = NULL;
return;
}
/***************************************************/
appreciated. I am receiving this warning for writing this self-referential
structure. Thanx in advance
test.c:8: warning: useless keyword or type name in empty declaration
/***************************************************/
#include <stdio.h>
#include <stdlib.h>
typedef struct list_node * list_pointer;
typedef struct list_node {
int dummy;
list_pointer link;
};
int main(void)
{
list_pointer ptr = NULL;
return;
}
/***************************************************/