changeset 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 30b42a283c8e
children a26b0c5d5942
files dmd/attrib.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)