From 8c0a429c292ea6735ce1ac14c22125266e8fb6c5 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 18:45:42 -0400 Subject: fix warnings --- source/slang/check.cpp | 4 ++-- source/slang/emit.cpp | 2 +- source/slang/lower-to-ir.cpp | 2 +- source/slang/lower.cpp | 2 +- source/slang/syntax.cpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source') diff --git a/source/slang/check.cpp b/source/slang/check.cpp index d01c913b1..58c1762bb 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -1661,7 +1661,7 @@ namespace Slang if (!declRefType) return false; - auto subStructTypeDecl = declRefType->declRef.getDecl()->As(); + auto structTypeDecl = declRefType->declRef.getDecl()->As(); //TODO: What do we do if type is a generic specialization? // i.e. if the struct defines typedef Generic T; // how to check if T satisfies the associatedtype constraints? @@ -1669,7 +1669,7 @@ namespace Slang bool conformance = true; for (auto & inheritanceDecl : constraintList) { - conformance = conformance && checkConformance(subStructTypeDecl, inheritanceDecl.Ptr()); + conformance = conformance && checkConformance(structTypeDecl, inheritanceDecl.Ptr()); } return conformance; } diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 849ca7e66..fc6fc0184 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -1194,7 +1194,7 @@ struct EmitVisitor EmitDeclarator(declarator); } - void visitThisType(ThisType* type, TypeEmitArg const&) + void visitThisType(ThisType* /*type*/, TypeEmitArg const&) { return; } diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp index 4595a0319..e149036a7 100644 --- a/source/slang/lower-to-ir.cpp +++ b/source/slang/lower-to-ir.cpp @@ -882,7 +882,7 @@ struct ValLoweringVisitor : ValVisitor ThisType::SubstituteImpl(Substitutions* subst, int* ioDiff) + RefPtr ThisType::SubstituteImpl(Substitutions* subst, int* /*ioDiff*/) { while (subst) { -- cgit v1.2.3