From 7be6ac6b365dfd7306b26d76ee3f572b9f5b54bb Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Wed, 22 Oct 2008 15:35:46 +0200 Subject: [PATCH] Turned unimplemented align error into a warning instead. --- dmd/attrib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmd/attrib.c b/dmd/attrib.c index 44d709af..f036e8c6 100644 --- a/dmd/attrib.c +++ b/dmd/attrib.c @@ -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)