Turned unimplemented align error into a warning instead.

This commit is contained in:
Tomas Lindquist Olsen
2008-10-22 15:35:46 +02:00
parent f7ea1da010
commit 7be6ac6b36

View File

@@ -498,8 +498,8 @@ AlignDeclaration::AlignDeclaration(Loc loc, unsigned sa, Array *decl)
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)