diff --git a/examples/common/packrect.h b/examples/common/packrect.h index 509edc4d..b0bc57e6 100644 --- a/examples/common/packrect.h +++ b/examples/common/packrect.h @@ -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; diff --git a/tools/geometryc/tokenizecmd.cpp b/tools/geometryc/tokenizecmd.cpp index 7396cf03..7ce18eaa 100644 --- a/tools/geometryc/tokenizecmd.cpp +++ b/tools/geometryc/tokenizecmd.cpp @@ -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) { diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 7be81249..43069670 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -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