From: Elena Zannoni Date: Thu, 30 Apr 1998 16:20:17 +0000 (+0000) Subject: Wed Apr 29 15:53:16 1998 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5eb2b01c91d39aefb39afd152acf91e3d2acebec;p=binutils-gdb.git Wed Apr 29 15:53:16 1998 Elena Zannoni * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter, which was unused. --- diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 31443ad6f1e..e56be87d222 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,8 @@ +Wed Apr 29 15:53:16 1998 Elena Zannoni + + * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter, + which was unused. + Thu Apr 23 19:01:05 1998 Keith Seitz * Makefile.in (install-only): Install help files. diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 78d1518c3d3..7a3c319cb1e 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 */