Mercurial > projects > ldc
diff dmd/attrib.c @ 716:b654bb98d31d
Turned unimplemented align error into a warning instead.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 15:35:46 +0200 |
parents | 20a5180f2e80 |
children | 55f6c2e454d7 |
line wrap: on
line diff
--- a/dmd/attrib.c Wed Oct 22 14:55:33 2008 +0200 +++ b/dmd/attrib.c Wed Oct 22 15:35:46 2008 +0200 @@ -498,8 +498,8 @@ this->loc = loc; salign = sa; - if (salign != 1) - error("align(%d) is not implemented and specified to be unportable anyway, use align(1) and manual fillers instead", salign); + if (global.params.warnings && salign != 1) + warning("%s: align(%d) is not implemented and specified to be unportable anyway, use align(1) and manual fillers instead", loc.toChars(), salign); } Dsymbol *AlignDeclaration::syntaxCopy(Dsymbol *s)