This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95 cppspec.c warning fix
- To: Philippe De Muyter <phdm at macqel dot be>
- Subject: Re: gcc-2.95 cppspec.c warning fix
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Mon, 07 Jun 1999 13:40:19 -0400
- CC: "egcs-patches at egcs dot cygnus dot com" <egcs-patches at egcs dot cygnus dot com>
- Organization: Cygnus Solutions Canada Ltd
- References: <199906060046.CAA02059@mail.macqel.be>
I've installed this in the mainline sources.
Dave
Philippe De Muyter wrote:
> Sun Jun 6 02:34:57 1999 Philippe De Muyter <phdm@macqel.be>
>
> * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
>
> --- ./gcc/cppspec.c Sun Jun 6 02:33:54 1999
> +++ ./gcc/cppspec.c Sun Jun 6 01:14:07 1999
> @@ -194,7 +194,7 @@ lang_specific_driver (errfn, in_argc, in
> if (new_argc == argc)
> return;
>
> - new_argv = xmalloc (new_argc * sizeof(char *));
> + new_argv = (char **) xmalloc (new_argc * sizeof(char *));
>
> new_argv[0] = argv[0];
> j = 1;