mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Cleanup: Clang warning fixes.
No warnings left on a '-Wall' build except for a single tautological compare in gen/asm-x86-32.h, which indeed seems like a bug.
This commit is contained in:
parent
289bb57adf
commit
0cd78dd579
13 changed files with 34 additions and 37 deletions
|
@ -1252,7 +1252,7 @@ DValue* DtoDeclarationExp(Dsymbol* declaration)
|
|||
}
|
||||
}
|
||||
// template
|
||||
else if (TemplateDeclaration* t = declaration->isTemplateDeclaration())
|
||||
else if (declaration->isTemplateDeclaration())
|
||||
{
|
||||
Logger::println("TemplateDeclaration");
|
||||
// do nothing
|
||||
|
@ -1437,7 +1437,7 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
|
|||
assert(ex->exp);
|
||||
return ex->exp->toElem(gIR);
|
||||
}
|
||||
else if (ArrayInitializer* ai = init->isArrayInitializer())
|
||||
else if (init->isArrayInitializer())
|
||||
{
|
||||
// TODO: do nothing ?
|
||||
}
|
||||
|
@ -1445,7 +1445,7 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
|
|||
{
|
||||
// do nothing
|
||||
}
|
||||
else if (StructInitializer *si = init->isStructInitializer()) {
|
||||
else if (init->isStructInitializer()) {
|
||||
// TODO: again nothing ?
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue