diff dmd/attrib.c @ 1372:229e02867307

Fix format-string bugs by adding __attribute__((__format__)) in all applicable places and fixing all warnings my gcc produced. Among other things, this should fix several segfaults (including one I just ran into).
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 17 May 2009 00:15:25 +0200
parents e961851fb8be
children 336faed34424
line wrap: on
line diff
--- a/dmd/attrib.c	Sat May 16 23:44:27 2009 +0200
+++ b/dmd/attrib.c	Sun May 17 00:15:25 2009 +0200
@@ -983,7 +983,7 @@
         }
         else
         {
-            error("command '%s' invalid");
+            error("command '%s' invalid", expr->toChars());
             fatal();
         }
     }