comparison 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
comparison
equal deleted inserted replaced
715:30b42a283c8e 716:b654bb98d31d
496 : AttribDeclaration(decl) 496 : AttribDeclaration(decl)
497 { 497 {
498 this->loc = loc; 498 this->loc = loc;
499 salign = sa; 499 salign = sa;
500 500
501 if (salign != 1) 501 if (global.params.warnings && salign != 1)
502 error("align(%d) is not implemented and specified to be unportable anyway, use align(1) and manual fillers instead", salign); 502 warning("%s: align(%d) is not implemented and specified to be unportable anyway, use align(1) and manual fillers instead", loc.toChars(), salign);
503 } 503 }
504 504
505 Dsymbol *AlignDeclaration::syntaxCopy(Dsymbol *s) 505 Dsymbol *AlignDeclaration::syntaxCopy(Dsymbol *s)
506 { 506 {
507 AlignDeclaration *ad; 507 AlignDeclaration *ad;