From 70f13b2ed53cebf78b2fae79428a4d28f396cd22 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 24 Oct 2018 09:54:45 -0400 Subject: [PATCH] Fixup unused parameter warnings This CL removes the current parameters which are unused in order to fixup the issued clang warnings. --- SPIRV/SpvPostProcess.cpp | 2 +- SPIRV/SpvTools.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SPIRV/SpvPostProcess.cpp b/SPIRV/SpvPostProcess.cpp index 27f145d0..3193ac95 100755 --- a/SPIRV/SpvPostProcess.cpp +++ b/SPIRV/SpvPostProcess.cpp @@ -208,7 +208,7 @@ void Builder::postProcess(const Instruction& inst) } // Called for each instruction in a reachable block. -void Builder::postProcessReachable(const Instruction& inst) +void Builder::postProcessReachable(const Instruction&) { // did have code here, but questionable to do so without deleting the instructions } diff --git a/SPIRV/SpvTools.cpp b/SPIRV/SpvTools.cpp index 4807b425..bc9bf9e0 100755 --- a/SPIRV/SpvTools.cpp +++ b/SPIRV/SpvTools.cpp @@ -114,8 +114,8 @@ void SpirvToolsValidate(const glslang::TIntermediate& intermediate, std::vector< // Apply the SPIRV-Tools optimizer to generated SPIR-V, for the purpose of // legalizing HLSL SPIR-V. -void SpirvToolsLegalize(const glslang::TIntermediate& intermediate, std::vector& spirv, - spv::SpvBuildLogger* logger, const SpvOptions* options) +void SpirvToolsLegalize(const glslang::TIntermediate&, std::vector& spirv, + spv::SpvBuildLogger*, const SpvOptions* options) { spv_target_env target_env = SPV_ENV_UNIVERSAL_1_2;