gcc-2.95 cppspec.c warning fix

Dave Brolley brolley@cygnus.com
Wed Jun 30 23:15:00 GMT 1999


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;





More information about the Gcc-patches mailing list