diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 1998-04-30 16:20:17 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 1998-04-30 16:20:17 +0000 |
commit | 5eb2b01c91d39aefb39afd152acf91e3d2acebec (patch) | |
tree | c1f8d4644972d841c9d60acb64f115c9b9c91f75 /gdb | |
parent | 06855275ef2cc6694f902932c308938d3331ff1f (diff) | |
download | gdb-5eb2b01c91d39aefb39afd152acf91e3d2acebec.zip gdb-5eb2b01c91d39aefb39afd152acf91e3d2acebec.tar.gz gdb-5eb2b01c91d39aefb39afd152acf91e3d2acebec.tar.bz2 |
Wed Apr 29 15:53:16 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter,
which was unused.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog-gdbtk | 5 | ||||
-rw-r--r-- | gdb/gdbtk.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 31443ad..e56be87 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,8 @@ +Wed Apr 29 15:53:16 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + + * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter, + which was unused. + Thu Apr 23 19:01:05 1998 Keith Seitz <keiths@onions.cygnus.com> * Makefile.in (install-only): Install help files. diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 78d1518..7a3c319 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -98,7 +98,7 @@ static void gdbtk_flush PARAMS ((FILE *)); static void gdbtk_fputs PARAMS ((const char *, FILE *)); static int gdbtk_query PARAMS ((const char *, va_list)); static void gdbtk_warning PARAMS ((const char *, va_list)); -static void gdbtk_ignorable_warning PARAMS ((const char *, va_list)); +static void gdbtk_ignorable_warning PARAMS ((const char *)); static char *gdbtk_readline PARAMS ((char *)); static void gdbtk_init PARAMS ((char *)); static void tk_command_loop PARAMS ((void)); @@ -324,14 +324,13 @@ gdbtk_warning (warning, args) } static void -gdbtk_ignorable_warning (warning, args) +gdbtk_ignorable_warning (warning) const char *warning; - va_list args; { char buf[200], *merge[2]; char *command; - vsprintf (buf, warning, args); + sprintf (buf, warning); merge[0] = "gdbtk_tcl_ignorable_warning"; merge[1] = buf; command = Tcl_Merge (2, merge); @@ -3107,7 +3106,7 @@ gdb_loadfile (clientData, interp, objc, objv) mtime = bfd_get_mtime(exec_bfd); if (mtime && mtime < st.st_mtime) - gdbtk_ignorable_warning("Source file is more recent than executable.\n", (va_list)0); + gdbtk_ignorable_warning("Source file is more recent than executable.\n"); /* Source linenumbers don't appear to be in order, and a sort is */ |