mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed warnings.
This commit is contained in:
parent
11722f17a1
commit
8c2b39efe2
3 changed files with 5 additions and 3 deletions
|
@ -159,7 +159,7 @@ public:
|
||||||
uint8_t side = _pack.m_side;
|
uint8_t side = _pack.m_side;
|
||||||
|
|
||||||
uint32_t ii = 0;
|
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[ii] = m_mru[0];
|
||||||
m_mru[0] = side;
|
m_mru[0] = side;
|
||||||
|
|
|
@ -36,7 +36,7 @@ const char* tokenizeCommandLine(const char* _commandLine, char* _buffer, uint32_
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case SkipWhitespace:
|
case SkipWhitespace:
|
||||||
for (; isspace(*curr); ++curr); // skip whitespace
|
for (; isspace(*curr); ++curr) {}; // skip whitespace
|
||||||
state = SetTerm;
|
state = SetTerm;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ const char* tokenizeCommandLine(const char* _commandLine, char* _buffer, uint32_
|
||||||
case Escape:
|
case Escape:
|
||||||
{
|
{
|
||||||
const char* start = --curr;
|
const char* start = --curr;
|
||||||
for (; '\\' == *curr; ++curr);
|
for (; '\\' == *curr; ++curr) {};
|
||||||
|
|
||||||
if ('"' != *curr)
|
if ('"' != *curr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -741,6 +741,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
BX_UNUSED(_cmdLine, _code, _writer);
|
||||||
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
|
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
|
||||||
return false;
|
return false;
|
||||||
#endif // BX_PLATFORM_WINDOWS
|
#endif // BX_PLATFORM_WINDOWS
|
||||||
|
@ -1028,6 +1029,7 @@ bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code,
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
BX_UNUSED(_cmdLine, _code, _writer);
|
||||||
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
|
fprintf(stderr, "HLSL compiler is not supported on this platform.\n");
|
||||||
return false;
|
return false;
|
||||||
#endif // BX_PLATFORM_WINDOWS
|
#endif // BX_PLATFORM_WINDOWS
|
||||||
|
|
Loading…
Reference in a new issue