Fixed warnings.

This commit is contained in:
bkaradzic 2013-12-07 10:45:15 -08:00
parent 11722f17a1
commit 8c2b39efe2
3 changed files with 5 additions and 3 deletions

View file

@ -159,7 +159,7 @@ public:
uint8_t side = _pack.m_side;
uint32_t ii = 0;
for (; ii < 6 && m_mru[ii] != side; ++ii);
for (; ii < 6 && m_mru[ii] != side; ++ii) {};
m_mru[ii] = m_mru[0];
m_mru[0] = side;

View file

@ -36,7 +36,7 @@ const char* tokenizeCommandLine(const char* _commandLine, char* _buffer, uint32_
switch (state)
{
case SkipWhitespace:
for (; isspace(*curr); ++curr); // skip whitespace
for (; isspace(*curr); ++curr) {}; // skip whitespace
state = SetTerm;
break;
@ -86,7 +86,7 @@ const char* tokenizeCommandLine(const char* _commandLine, char* _buffer, uint32_
case Escape:
{
const char* start = --curr;
for (; '\\' == *curr; ++curr);
for (; '\\' == *curr; ++curr) {};
if ('"' != *curr)
{

View file

@ -741,6 +741,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
return true;
#else
BX_UNUSED(_cmdLine, _code, _writer);
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
return false;
#endif // BX_PLATFORM_WINDOWS
@ -1028,6 +1029,7 @@ bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code,
return true;
#else
BX_UNUSED(_cmdLine, _code, _writer);
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
return false;
#endif // BX_PLATFORM_WINDOWS