From e1710807292544775dc6a0eb338af081fb94493e Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 7 Nov 2017 21:43:39 -0500 Subject: turn on 'treat warnings as errors' (#266) --- tools/render-test/render-test.vcxproj | 4 ++++ tools/slang-test/main.cpp | 15 +++++++-------- tools/slang-test/os.cpp | 2 +- tools/slang-test/slang-test.vcxproj | 12 ++++++++---- 4 files changed, 20 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/render-test/render-test.vcxproj b/tools/render-test/render-test.vcxproj index 0b0f6b05e..a175d3973 100644 --- a/tools/render-test/render-test.vcxproj +++ b/tools/render-test/render-test.vcxproj @@ -98,6 +98,7 @@ WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) ../../source/ MultiThreadedDebug + true Console @@ -113,6 +114,7 @@ _DEBUG;_WINDOWS;%(PreprocessorDefinitions) ../../source/ MultiThreadedDebug + true Console @@ -130,6 +132,7 @@ WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) ../../source/ MultiThreaded + true Console @@ -149,6 +152,7 @@ NDEBUG;_WINDOWS;%(PreprocessorDefinitions) ../../source/ MultiThreaded + true Console diff --git a/tools/slang-test/main.cpp b/tools/slang-test/main.cpp index cb1730c6e..292b98137 100644 --- a/tools/slang-test/main.cpp +++ b/tools/slang-test/main.cpp @@ -95,8 +95,8 @@ void parseOptions(int* argc, char** argv) { while(argCursor != argEnd) { - char const* arg = *argCursor++; - *writeCursor++ = arg; + char const* nxtArg = *argCursor++; + *writeCursor++ = nxtArg; } break; } @@ -1387,7 +1387,7 @@ TestResult runHLSLAndGLSLComparisonTest(TestInput& input) return runHLSLRenderComparisonTestImpl(input, "-hlsl-rewrite", "-glsl-rewrite"); } -TestResult skipTest(TestInput& input) +TestResult skipTest(TestInput& /*input*/) { return kTestResult_Ignored; } @@ -1579,7 +1579,7 @@ bool testCategoryMatches( } bool testPassesCategoryMask( - TestContext* context, + TestContext* /*context*/, TestOptions const& test) { // Don't include a test we should filter out @@ -1650,7 +1650,7 @@ void runTestsOnFile( static bool endsWithAllowedExtension( - TestContext* context, + TestContext* /*context*/, String filePath) { char const* allowedExtensions[] = { @@ -1723,12 +1723,11 @@ int main( auto quickTestCategory = addTestCategory("quick", fullTestCategory); - auto smokeTestCategory = addTestCategory("smoke", quickTestCategory); + /*auto smokeTestCategory = */addTestCategory("smoke", quickTestCategory); auto renderTestCategory = addTestCategory("render", fullTestCategory); - auto computeTestCategory = addTestCategory("compute", fullTestCategory); - + /*auto computeTestCategory = */addTestCategory("compute", fullTestCategory); // An un-categorized test will always belong to the `full` category defaultTestCategory = fullTestCategory; diff --git a/tools/slang-test/os.cpp b/tools/slang-test/os.cpp index 4d5a49a9f..8cb49248c 100644 --- a/tools/slang-test/os.cpp +++ b/tools/slang-test/os.cpp @@ -185,7 +185,7 @@ static DWORD WINAPI osReaderThreadProc(LPVOID threadParam) break; } - *writeCursor++ = c; + *writeCursor++ = (char)c; } bytesRead = (DWORD)(writeCursor - buffer); diff --git a/tools/slang-test/slang-test.vcxproj b/tools/slang-test/slang-test.vcxproj index 27453391c..70b35e93b 100644 --- a/tools/slang-test/slang-test.vcxproj +++ b/tools/slang-test/slang-test.vcxproj @@ -93,10 +93,11 @@ - Level3 + Level4 Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDebug + true Console @@ -107,10 +108,11 @@ - Level3 + Level4 Disabled _DEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDebug + true Console @@ -119,7 +121,7 @@ - Level3 + Level4 MaxSpeed @@ -127,6 +129,7 @@ true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreaded + true Console @@ -137,7 +140,7 @@ - Level3 + Level4 MaxSpeed @@ -145,6 +148,7 @@ true NDEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreaded + true Console -- cgit v1.2.3