Browse Source

Fix unused variable warnings in ExecutionTest (#2476)

Helena Kotas 6 years ago
parent
commit
b378bd7b22
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/clang/unittests/HLSL/ExecutionTest.cpp

+ 2 - 1
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -6212,7 +6212,7 @@ std::function<T(T, T)> GetWaveMultiPrefixReferenceFunction(LPCWSTR testName) {
     // condition is true, thus we contribute one to the bit count.
     // condition is true, thus we contribute one to the bit count.
     return [] (T lhs, T rhs) -> T { return lhs + (rhs ? 1 : 0); };
     return [] (T lhs, T rhs) -> T { return lhs + (rhs ? 1 : 0); };
   } else {
   } else {
-    return [] (T lhs, T rhs) -> T { return 0; };
+    return [] (T lhs, T rhs) -> T { UNREFERENCED_PARAMETER(lhs); UNREFERENCED_PARAMETER(rhs); return 0; };
   }
   }
 }
 }
 
 
@@ -6271,6 +6271,7 @@ ExecutionTest::WaveIntrinsicsMultiPrefixOpTest(TableParameter *pParameterList,
     std::shared_ptr<ShaderOpTestResult> test =
     std::shared_ptr<ShaderOpTestResult> test =
       RunShaderOpTestAfterParse(pDevice, m_support, "WaveIntrinsicsOp",
       RunShaderOpTestAfterParse(pDevice, m_support, "WaveIntrinsicsOp",
       [&] (LPCSTR name, std::vector<BYTE> &data, st::ShaderOp *pShaderOp) {
       [&] (LPCSTR name, std::vector<BYTE> &data, st::ShaderOp *pShaderOp) {
+        UNREFERENCED_PARAMETER(name);
 
 
         const size_t dataSize = sizeof(PerThreadData) * ThreadCount;
         const size_t dataSize = sizeof(PerThreadData) * ThreadCount;