diff dmd/Util.d @ 123:9e39c7de8438

Make dmd test suite compile
author korDen
date Fri, 03 Sep 2010 20:46:58 +0400
parents e28b18c23469
children 010eb8f0e18d
line wrap: on
line diff
--- a/dmd/Util.d	Thu Sep 02 23:37:49 2010 +0100
+++ b/dmd/Util.d	Fri Sep 03 20:46:58 2010 +0400
@@ -75,7 +75,11 @@
 
 void warning(T...)(Loc loc, string format, T t)
 {
-	assert(false);
+	if (global.params.warnings && !global.gag)
+    {
+		write("warning - ");
+		error(loc, format, t);
+    }
 }
 
 void error(T...)(Loc loc, string format, T t)