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 <[EMAIL PROTECTED]>

        * 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 <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
+
+       * 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 <[EMAIL PROTECTED]>
+
 2004-01-25  Guilhem Lavaux <[EMAIL PROTECTED]>
 
        * 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, ...)

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to