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]
Other format: [Raw text]

Re: [PATCH] Silence execvp argv warning in gcc.c on MinGW


Hello Aaron,

* Aaron W. LaFramboise wrote on Sun, Aug 17, 2008 at 08:01:16AM CEST:
> --- gcc/gcc.c	(revision 139148)
> +++ gcc/gcc.c	(working copy)
> @@ -3423,7 +3423,9 @@ process_command (int argc, const char **
>        new_argv = XDUPVEC (char *, argv, argc + 1);
>        new_argv[0] = new_argv0;
>  
> -      execvp (new_argv0, new_argv);
> +#ifdef _MINGW32
> +      execvp (new_argv0, (char *const *)new_argv);
> +#endif
>        fatal ("couldn't run '%s': %s", new_argv0, xstrerror (errno));

Please don't remove the execvp call for non-MinGW.

Cheers,
Ralf


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