2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00

Clean up build warnings (gcc & clang).

This commit is contained in:
Rene Rivera
2020-02-24 22:10:15 -06:00
parent b3dfe156e7
commit e115f07729
19 changed files with 61 additions and 248 deletions

View File

@@ -184,7 +184,6 @@ void exec_cmd
int const slot = get_free_cmdtab_slot();
int out[ 2 ];
int err[ 2 ];
int len;
char const * argv[ MAXARGC + 1 ]; /* +1 for NULL */
/* Initialize default shell. */
@@ -460,8 +459,6 @@ void exec_wait()
while ( !finished )
{
int i;
struct timeval tv;
struct timeval * ptv = NULL;
int select_timeout = globs.timeout;
/* Check for timeouts:
@@ -485,14 +482,6 @@ void exec_wait()
else if ( globs.timeout - consumed < select_timeout )
select_timeout = globs.timeout - consumed;
}
/* If nothing else causes our select() call to exit, force it after
* however long it takes for the next one of our child processes to
* crossed its allotted processing time so we can terminate it.
*/
tv.tv_sec = select_timeout;
tv.tv_usec = 0;
ptv = &tv;
}
/* select() will wait for I/O on a descriptor, a signal, or timeout. */