changeset 1460:a1666b613c15

* Fix some gcc warnings in the D2 frontend code. * Remove binaries from `dmd2/`
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 02 Jun 2009 19:18:48 +0200
parents 69a195e07d89
children 49e6f9d2d33f
files dmd2/idgen dmd2/impcnvgen dmd2/lexer.c dmd2/root/root.c dmd2/traits.c
diffstat 5 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file dmd2/idgen has changed
Binary file dmd2/impcnvgen has changed
--- a/dmd2/lexer.c	Tue Jun 02 17:44:50 2009 +0100
+++ b/dmd2/lexer.c	Tue Jun 02 19:18:48 2009 +0200
@@ -617,7 +617,7 @@
 		t->postfix = 0;
 		t->value = TOKstring;
 		if (!global.params.useDeprecated)
-		    error("Escape String literal %.*s is deprecated, use double quoted string literal \"%.*s\" instead", p - pstart, pstart, p - pstart, pstart);
+		    error("Escape String literal %.*s is deprecated, use double quoted string literal \"%.*s\" instead", (int)(p - pstart), pstart, (int)(p - pstart), pstart);
 		return;
 	    }
 #endif
--- a/dmd2/root/root.c	Tue Jun 02 17:44:50 2009 +0100
+++ b/dmd2/root/root.c	Tue Jun 02 19:18:48 2009 +0200
@@ -7,7 +7,9 @@
 // in artistic.txt, or the GNU General Public License in gnu.txt.
 // See the included readme.txt for details.
 
+#ifndef POSIX
 #define POSIX (linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4)
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
--- a/dmd2/traits.c	Tue Jun 02 17:44:50 2009 +0100
+++ b/dmd2/traits.c	Tue Jun 02 19:18:48 2009 +0200
@@ -408,7 +408,7 @@
     goto Lfalse;
 
 Ldimerror:
-    error("wrong number of arguments %d", dim);
+    error("wrong number of arguments %d", (int)dim);
     goto Lfalse;