diff options
author | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-22 17:43:43 -0300 |
commit | a926878ddbd5a98b272c22171ce58663fc04c3e0 (patch) | |
tree | 86af256e5d9a9c06263c00adc90e5fe348008c43 /gcc/ada/expect.c | |
parent | 542730f087133690b47e036dfd43eb0db8a650ce (diff) | |
parent | 07cbaed8ba7d1b6e4ab3a9f44175502a4e1ecdb1 (diff) | |
download | gcc-devel/autopar_devel.zip gcc-devel/autopar_devel.tar.gz gcc-devel/autopar_devel.tar.bz2 |
Merge branch 'autopar_rebase2' into autopar_develdevel/autopar_devel
Quickly commit changes in the rebase branch.
Diffstat (limited to 'gcc/ada/expect.c')
-rw-r--r-- | gcc/ada/expect.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c index b8753ab..718886d 100644 --- a/gcc/ada/expect.c +++ b/gcc/ada/expect.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 2001-2019, AdaCore * + * Copyright (C) 2001-2020, AdaCore * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -78,6 +78,7 @@ #include <process.h> #include <signal.h> #include <io.h> +#include "adaint.h" #include "mingw32.h" int @@ -85,11 +86,10 @@ __gnat_waitpid (int pid) { HANDLE h = OpenProcess (PROCESS_ALL_ACCESS, FALSE, pid); DWORD exitcode = 1; - DWORD res; if (h != NULL) { - res = WaitForSingleObject (h, INFINITE); + (void) WaitForSingleObject (h, INFINITE); GetExitCodeProcess (h, &exitcode); CloseHandle (h); } @@ -105,7 +105,8 @@ __gnat_expect_fork (void) } void -__gnat_expect_portable_execvp (int *pid, char *cmd, char *argv[]) +__gnat_expect_portable_execvp (int *pid, char *cmd ATTRIBUTE_UNUSED, + char *argv[]) { *pid = __gnat_portable_no_block_spawn (argv); } |