odd warning message from gcc under FreeBSD 4.10

2004-10-25 Thread Richard Williamson
Hello, Is this something known about, or: What am I missing? TIA, rip PROBLEM: man strstr says: returns char * test code throws warning on line 7: test.c:7: warning: assignment makes pointer from integer \ without a cast TEST CODE int main (int argc, void ** argv) { char *pBlah = 0x0;

Re: odd warning message from gcc under FreeBSD 4.10

2004-10-25 Thread Charles Swiger
On Oct 25, 2004, at 11:16 AM, Richard Williamson wrote: Is this something known about, or: What am I missing? TIA, rip PROBLEM: man strstr says: returns char * test code throws warning on line 7: test.c:7: warning: assignment makes pointer from integer \ without a cast [ ...see previous

Re: odd warning message from gcc under FreeBSD 4.10

2004-10-25 Thread Erik Trulsson
On Mon, Oct 25, 2004 at 04:16:47PM +0100, Richard Williamson wrote: Hello, Is this something known about, or: What am I missing? You are missing an '#include string.h' (as well as an '#include stdio.h') Since string.h isn't included the compiler does not know what the return type of strstr()