This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] libiberty/strdup.c: Constify the argument.
- From: DJ Delorie <dj at redhat dot com>
- To: kazu at cs dot umass dot edu
- Cc: gcc-patches at gcc dot gnu dot org, zack at codesourcery dot com
- Date: Thu, 15 Jan 2004 10:49:21 -0500
- Subject: Re: [patch] libiberty/strdup.c: Constify the argument.
- References: <20040115.100147.59487576.kazu@cs.umass.edu>
> This was caught while I was building h8300-hms with Zack's c-decl.c
> rewrite patch. The patched GCC said
>
> error: argument "s" doesn't match prototype
What prototype? If there's a prototype, strdup.c shouldn't have been
compiled - unless the runtime is broken?
> 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
>
> * strdup.c (strdup): Consitify the argument.
Ok.