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:
parent
d78739d163
commit
dc15fa965b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue