the code you included compiles without that warning on my system. i did have to assign temp=0; to get rid of uninitialized variable warning....
if you e-mail me the whole file, i'll compile it to confirm, but your snipet compiles fine (also turned warning level to max to catch other things).
code:<HR>Code:#define MAXLEN 10<P>typedef struct QueueNodeTag { char data[MAXLEN]; struct QueueNodeTag * next; } QueueNode;<P>typedef struct { struct QueueNode *head; struct QueueNode *tail; } Queue;<P>void Insert (Queue *q, char *to_be_sent) { QueueNode *temp;<P>temp = 0;<P> q->head = temp; // Special case for the first q->tail = temp; // element in the Linked List }
if you e-mail me the whole file, i'll compile it to confirm, but your snipet compiles fine (also turned warning level to max to catch other things).