diff options
author | Pierre Muller <muller@sourceware.org> | 2002-02-06 09:27:29 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2002-02-06 09:27:29 +0000 |
commit | 58fa08f090cbcafe7dba6835ac8ae7164e46ec0d (patch) | |
tree | 30f35fe3630eea092364ca53a6639ba980856c41 | |
parent | 7393af7c90e44987e82f41be0692ec4c19620595 (diff) | |
download | fsf-binutils-gdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.zip fsf-binutils-gdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.tar.gz fsf-binutils-gdb-58fa08f090cbcafe7dba6835ac8ae7164e46ec0d.tar.bz2 |
2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (_initialize_check_for_gdb_ini):
Add typecast to sprintf argument to suppress a warning.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/win32-nat.c | 3 | ||||
-rw-r--r-- | gdb/windows-nat.c | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 493d9b4..ce6f3ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,11 @@ +2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr> + + * win32-nat.c (_initialize_check_for_gdb_ini): + Add typecast to sprintf argument to suppress a warning. + 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr> - 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 92a2b5f..a85d482 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 92a2b5f..a85d482 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); } } |