From dc15fa965b970e0810a5307d09eb23cf26916364 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 10 Jun 2008 15:03:34 -0700 Subject: [PATCH] Remove MinGW unused variable warning This patch moves the definition of rtn into the non-MinGW branch since that is the only place it is used. --- driver/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver/main.c b/driver/main.c index 6520e6bf3..4fb995f0e 100644 --- a/driver/main.c +++ b/driver/main.c @@ -266,7 +266,6 @@ static const char*my_tempfile(const char*str, FILE**fout) */ static int t_default(char*cmd, unsigned ncmd) { - int rtn = 0; unsigned rc; #ifdef __MINGW32__ unsigned ncmd_start = ncmd; @@ -332,7 +331,7 @@ static int t_default(char*cmd, unsigned ncmd) free(cmd); return rc; #else - + int rtn = 0; if (rc != 0) { if (rc == 127) { fprintf(stderr, "Failed to execute: %s\n", cmd);