This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95 cppspec.c warning fix


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;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]