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/slang-test/main.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tools/slang-test/main.cpp') 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; -- cgit v1.2.3