Use <varargs.h>, since <stdarg.h> is not portable.
authorJohn Gilmore <gnu@cygnus>
Thu, 24 Oct 1991 16:34:56 +0000 (16:34 +0000)
committerJohn Gilmore <gnu@cygnus>
Thu, 24 Oct 1991 16:34:56 +0000 (16:34 +0000)
gdb/ChangeLog
gdb/dwarfread.c

index ab81f0ca57b061b2754e053f5c05e8e5086bf43a..c5b300da7a619a4704455129702877841cb201ee 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct 24 09:33:44 1991  John Gilmore  (gnu at cygnus.com)
+
+       * dwarfread.c:  Use <varargs.h>, since <stdarg.h> is not portable.
+
 Thu Oct 24 01:32:51 1991  Fred Fish  (fnf at cygnus.com)
 
         * dwarfread.c: New file for DWARF debugging format support.
index 6bb6c16fc2780bd3245cda26ceb602ce33629a84..54323fd5c17ec680360abda0c224ac40e0974e3e 100644 (file)
@@ -65,7 +65,7 @@ other things to work on, if you get bored. :-)
 */
 
 #include <stdio.h>
-#include <stdarg.h>
+#include <varargs.h>
 #include <fcntl.h>
 
 #include "defs.h"
@@ -607,11 +607,14 @@ NOTES
 */
 
 static void
-DEFUN(dwarfwarn, (fmt), char *fmt DOTS)
+dwarfwarn (va_alist)
+     va_dcl
 {
   va_list ap;
+  char *fmt;
   
-  va_start (ap, fmt);
+  va_start (ap);
+  fmt = va_arg (ap, char *);
   warning_setup ();
   fprintf (stderr, "DWARF warning (ref 0x%x): ", curdie -> dieref);
   if (curdie -> at_name)
This page took 0.031866 seconds and 4 git commands to generate.