Mercurial > projects > ldc
diff dmd/scope.c @ 1103:b30fe7e1dbb9
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 12 Mar 2009 20:37:27 +0100 |
parents | d4e95db0e62b |
children | f99a3b393c03 |
line wrap: on
line diff
--- a/dmd/scope.c Thu Mar 12 14:08:57 2009 +0100 +++ b/dmd/scope.c Thu Mar 12 20:37:27 2009 +0100 @@ -257,10 +257,7 @@ sc->enclosing && sc->enclosing->search(loc, ident, NULL)) { - // WTF ? - if (global.params.warnings) - fprintf(stdmsg, "warning - "); - error(s->loc, "array 'length' hides other 'length' name in outer scope"); + warning(s->loc, "array 'length' hides other 'length' name in outer scope"); } //printf("\tfound %s.%s, kind = '%s'\n", s->parent ? s->parent->toChars() : "", s->toChars(), s->kind());