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.
This commit is contained in:
Cary R 2008-06-10 15:03:34 -07:00 committed by Stephen Williams
parent d78739d163
commit dc15fa965b
1 changed files with 1 additions and 2 deletions

View File

@ -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);