From faa7fd46656807edd9025cb218a91685c1eea7c7 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sat, 10 May 2014 03:03:21 -0700 Subject: [PATCH] Fix bugs identified by unused variable warning --- conversion/third.d | 4 ++-- semantic.d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conversion/third.d b/conversion/third.d index 0f4b6bf..b9925c9 100644 --- a/conversion/third.d +++ b/conversion/third.d @@ -154,7 +154,7 @@ private: * string.sizeof); scope(exit) Mallocator.it.deallocate(symbolParts); expandSymbol(symbolParts, - t.type2.symbol.identifierOrTemplateChain, stringCache, name); + t.type2.symbol.identifierOrTemplateChain, stringCache); auto symbols = moduleScope.getSymbolsByNameAndCursor( symbolParts[0], location); if (symbols.length == 0) @@ -175,7 +175,7 @@ private: } static void expandSymbol(string[] strings, const IdentifierOrTemplateChain chain, - shared(StringCache)* stringCache, string n) + shared(StringCache)* stringCache) { for (size_t i = 0; i < chain.identifiersOrTemplateInstances.length; ++i) { diff --git a/semantic.d b/semantic.d index 06ad3e3..660f84b 100644 --- a/semantic.d +++ b/semantic.d @@ -125,5 +125,5 @@ static this() TypeSuffix argumentsTypeSuffix = allocate!TypeSuffix(Mallocator.it); argumentsTypeSuffix.array = true; argumentsType.typeSuffixes = cast(TypeSuffix[]) Mallocator.it.allocate(TypeSuffix.sizeof); - argumentsType.typeSuffixes[0] = argptrTypeSuffix; + argumentsType.typeSuffixes[0] = argumentsTypeSuffix; }