From 727c2b4c7011c252fd1973358629cccbfecfc25d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Sep 2016 15:38:22 +0300 Subject: Fix compilation warnings on MinGW with the latest runtime reported by Marc de Bourget . --- debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debug.c') diff --git a/debug.c b/debug.c index 665775d5..6d40cac5 100644 --- a/debug.c +++ b/debug.c @@ -2902,7 +2902,11 @@ restart(bool run) close_all(); /* start a new process replacing the current process */ +#ifdef __MINGW32__ + execvp(d_argv[0], (const char * const *)d_argv); +#else execvp(d_argv[0], d_argv); +#endif /* execvp failed !!! */ fprintf(out_fp, _("Failed to restart debugger")); -- cgit v1.2.3