visual studio 2012 Level 4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:38:53 +01:00
parent 835649aa2f
commit 502e346eb6
8 changed files with 19 additions and 24 deletions

View file

@ -1910,8 +1910,11 @@ extern int isatty (int );
b->yy_bs_column = 0;
}
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#ifdef _MSC_VER
b->yy_is_interactive = file ? (isatty( _fileno(file) ) > 0) : 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif // _MSC_VER
errno = oerrno;
}

View file

@ -2058,13 +2058,6 @@ yydestruct (yymsg, yytype, yyvaluep)
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
switch (yytype)
{
default:
break;
}
}

View file

@ -479,7 +479,7 @@ DefineConsoleFunction( strreplace, const char*, ( const char* source, const char
if(!scan)
{
dStrcpy(ret + dstp, source + scanp);
return ret;
break;
}
U32 len = scan - (source + scanp);
dStrncpy(ret + dstp, source + scanp, len);