[kaffe] CVS kaffe (dalibor): Fixed compiler warning on hpux

Kaffe CVS cvs-commits at kaffe.org
Sun Jan 25 10:57:02 PST 2004


PatchSet 4369 
Date: 2004/01/25 18:53:33
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed compiler warning on hpux

2004-01-25  Dalibor Topic <robilad at kaffe.org>

        * kaffe/kaffevm/debug.c:
        Include <stdarg.h> if it exists. Include <stdio.h> to fix
        compiler warnings on HP-UX about missing vsnprintf prototype.

        Reported by: Riccardo Mottola <zuse at libero.it>

Members: 
	ChangeLog:1.1954->1.1955 
	kaffe/kaffevm/debug.c:1.47->1.48 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1954 kaffe/ChangeLog:1.1955
--- kaffe/ChangeLog:1.1954	Sun Jan 25 18:07:46 2004
+++ kaffe/ChangeLog	Sun Jan 25 18:53:33 2004
@@ -1,3 +1,11 @@
+2004-01-25  Dalibor Topic <robilad at kaffe.org>
+
+	* kaffe/kaffevm/debug.c:
+	Include <stdarg.h> if it exists. Include <stdio.h> to fix
+	compiler warnings on HP-UX about missing vsnprintf prototype.
+
+	Reported by: Riccardo Mottola <zuse at libero.it>
+
 2004-01-25  Guilhem Lavaux <guilhem at kaffe.org>
 
 	* test/regression/compile_time/CompileScript.in: Make the script
Index: kaffe/kaffe/kaffevm/debug.c
diff -u kaffe/kaffe/kaffevm/debug.c:1.47 kaffe/kaffe/kaffevm/debug.c:1.48
--- kaffe/kaffe/kaffevm/debug.c:1.47	Thu Jul 31 22:46:46 2003
+++ kaffe/kaffe/kaffevm/debug.c	Sun Jan 25 18:53:34 2004
@@ -19,6 +19,13 @@
  * chosen at run time.
  */
 
+
+#if defined(HAVE_STDARG_H)
+#include <stdarg.h>
+#endif /* defined(HAVE_STDARG_H) */
+
+#include <stdio.h>
+
 #include "config.h"
 #include "config-std.h"
 #include "config-mem.h"
@@ -367,7 +374,6 @@
  * When debugging, printf should use fprintf() to avoid
  * threading/blocking problems.
  */
-#include <stdarg.h> /* XXX */
 
 int
 kaffe_dprintf(const char *fmt, ...)




More information about the kaffe mailing list