ソースを参照

Fixed warnings.

bkaradzic 12 年 前
コミット
8c2b39efe2

+ 1 - 1
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;

+ 2 - 2
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)
 					{

+ 2 - 0
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