From 93509e0bfefaeafdd1c60cbc4d67d63ca25d7b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 29 May 2020 10:56:22 +0200 Subject: [PATCH] Cleaned unused variables from tests utils --- test/tap/tap/utils.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/tap/tap/utils.cpp b/test/tap/tap/utils.cpp index c865ba6f7..8132b73a6 100644 --- a/test/tap/tap/utils.cpp +++ b/test/tap/tap/utils.cpp @@ -179,9 +179,6 @@ int wexecvp(const std::string& file, const std::vector& argv, const int err = 0; to_opts to_opts { 1000*1000, 100*1000, 500*1000 }; - int outfd[2]; - int infd[2]; - // Pipes for parent to write and read pipe(pipes[PARENT_READ_PIPE]); pipe(pipes[PARENT_WRITE_PIPE]); @@ -240,7 +237,6 @@ int wexecvp(const std::string& file, const std::vector& argv, const fcntl(PARENT_READ_ERR, F_SETFL, fcntl(PARENT_READ_ERR, F_GETFL) | O_NONBLOCK); fd_set read_fds; - uint read_fds_sz = 2; int maxfd = PARENT_READ_FD > PARENT_READ_ERR ? PARENT_READ_FD : PARENT_READ_ERR; bool stdout_eof = false; @@ -337,9 +333,6 @@ int execvp(const std::string& cmd, const std::vector& argv, std::st // Append null to end of _argv for extra safety _argv.push_back(nullptr); - int outfd[2]; - int infd[2]; - // Pipes for parent to write and read pipe(pipes[PARENT_READ_PIPE]); pipe(pipes[PARENT_WRITE_PIPE]);