From 8c2b39efe26a33996c0234a8f5a6ba6ba4f951e9 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sat, 7 Dec 2013 10:45:15 -0800 Subject: [PATCH] Fixed warnings. --- examples/common/packrect.h | 2 +- tools/geometryc/tokenizecmd.cpp | 4 ++-- tools/shaderc/shaderc.cpp | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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