summaryrefslogtreecommitdiff
path: root/tools/slang-test/main.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-07 21:43:39 -0500
committerTim Foley <tfoleyNV@users.noreply.github.com>2017-11-07 18:43:39 -0800
commite1710807292544775dc6a0eb338af081fb94493e (patch)
treed1982bbf9d6e3ae2275298a2dbed26dea0b62174 /tools/slang-test/main.cpp
parenta5dfa5cd2bfa11fb3d9e84877f8dead1815e9077 (diff)
turn on 'treat warnings as errors' (#266)
Diffstat (limited to 'tools/slang-test/main.cpp')
-rw-r--r--tools/slang-test/main.cpp15
1 files changed, 7 insertions, 8 deletions
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;