This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unomitted frame pointers
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: "Thomas R. Truscott" <trt at cs dot duke dot edu>,Andreas Schwab <schwab at suse dot de>,Dave Korn <dave dot korn at artimi dot com>,'jlh' <jlh at gmx dot ch>
- Date: Fri, 10 Dec 2004 17:26:33 +0000
- Subject: Re: Unomitted frame pointers
- Organization: CodeSourcery
- References: <200412101654.iBAGssbs010940@meenie.cs.duke.edu>
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