# HG changeset patch # User Tomas Lindquist Olsen # Date 1224682546 -7200 # Node ID b654bb98d31dc60dff5a1ef2622d7679d490f2c4 # Parent 30b42a283c8e5e4e82d67e9c9ebe6fe48ad623a6 Turned unimplemented align error into a warning instead. diff -r 30b42a283c8e -r b654bb98d31d dmd/attrib.c --- 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)