From fe82779952349597ae08416538c5ba05aa716c88 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Mon, 24 Jul 2023 11:30:56 +0100 Subject: [PATCH] Silence unused parameter warning The parameter could be removed, but keep it for consistency with other `makeSpirvTypeParameters` overloads. --- glslang/MachineIndependent/SpirvIntrinsics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/SpirvIntrinsics.cpp b/glslang/MachineIndependent/SpirvIntrinsics.cpp index ecef5607e..48c6a5bac 100644 --- a/glslang/MachineIndependent/SpirvIntrinsics.cpp +++ b/glslang/MachineIndependent/SpirvIntrinsics.cpp @@ -298,7 +298,8 @@ TSpirvTypeParameters* TParseContext::makeSpirvTypeParameters(const TSourceLoc& l return spirvTypeParams; } -TSpirvTypeParameters* TParseContext::makeSpirvTypeParameters(const TSourceLoc& loc, const TPublicType& type) +TSpirvTypeParameters* TParseContext::makeSpirvTypeParameters(const TSourceLoc& /* loc */, + const TPublicType& type) { TSpirvTypeParameters* spirvTypeParams = new TSpirvTypeParameters; spirvTypeParams->push_back(TSpirvTypeParameter(new TType(type)));