Skip to content

Commit

Permalink
fix Issue 12788 - -di doesn't warn about implicit conversion from cha…
Browse files Browse the repository at this point in the history
…r[] to char*
  • Loading branch information
WalterBright committed Aug 11, 2014
1 parent 955a6d4 commit c570315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cast.c
Expand Up @@ -60,6 +60,10 @@ Expression *Expression::implicitCastTo(Scope *sc, Type *t)
toChars(), type->toChars(), t->toChars());
}
}

if (global.params.useDeprecated == 2 &&
(tyfrom == Tarray || tyfrom == Tsarray) && tyto == Tpointer)
warning("implicit conversion of %s to %s", type->toChars(), t->toChars());
#if DMDV2
if (match == MATCHconst && t == type->constOf())
{
Expand Down

0 comments on commit c570315

Please sign in to comment.