Unomitted frame pointers

Paul Brook paul@codesourcery.com
Fri Dec 10 17:26:00 GMT 2004


On Friday 10 December 2004 16:54, Thomas R. Truscott wrote:
> P.S.  here is another thing gcc misses:
>
>           memcpy("hi", p, 2);  /* "cannot modify string literal" */

Works for me:

paul@wren:~$ gcc -Wwrite-strings test.c
test.c: In function 'main':
test.c:9: warning: passing argument 1 of 'memcpy' discards qualifiers from 
pointer target type

Paul



More information about the Gcc mailing list