mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
visual studio 2012 Level 4 warning fixes
This commit is contained in:
parent
835649aa2f
commit
502e346eb6
8 changed files with 19 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2058,13 +2058,6 @@ yydestruct (yymsg, yytype, yyvaluep)
|
|||
if (!yymsg)
|
||||
yymsg = "Deleting";
|
||||
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
|
||||
|
||||
switch (yytype)
|
||||
{
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue