From: Pierre Muller Date: Wed, 6 Feb 2002 09:27:29 +0000 (+0000) Subject: 2002-02-06 Pierre Muller X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58fa08f090cbcafe7dba6835ac8ae7164e46ec0d;p=binutils-gdb.git 2002-02-06 Pierre Muller * win32-nat.c (_initialize_check_for_gdb_ini): Add typecast to sprintf argument to suppress a warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 493d9b47802..ce6f3ec279b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,11 @@ +2002-02-06 Pierre Muller + + * win32-nat.c (_initialize_check_for_gdb_ini): + Add typecast to sprintf argument to suppress a warning. + 2002-02-05 Pierre Muller - win32-nat.c (last_sig): Changed type of variable to target_signal, + * win32-nat.c (last_sig): Changed type of variable to target_signal, to allow easier handling of pass state. (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception, that gives exception name and address. diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 92a2b5fa68a..a85d48226ca 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -2009,7 +2009,8 @@ _initialize_check_for_gdb_ini (void) { int len = strlen (oldini); char *newini = alloca (len + 1); - sprintf (newini, "%.*s.gdbinit", len - (sizeof ("gdb.ini") - 1), oldini); + sprintf (newini, "%.*s.gdbinit", + (int) (len - (sizeof ("gdb.ini") - 1)), oldini); warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini); } } diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 92a2b5fa68a..a85d48226ca 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2009,7 +2009,8 @@ _initialize_check_for_gdb_ini (void) { int len = strlen (oldini); char *newini = alloca (len + 1); - sprintf (newini, "%.*s.gdbinit", len - (sizeof ("gdb.ini") - 1), oldini); + sprintf (newini, "%.*s.gdbinit", + (int) (len - (sizeof ("gdb.ini") - 1)), oldini); warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini); } }