Fix bugs identified by unused variable warning

This commit is contained in:
Hackerpilot 2014-05-10 03:03:21 -07:00
parent 80e3ad1f57
commit faa7fd4665
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;
}