summaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2002-02-06 09:27:29 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2002-02-06 09:27:29 +0000
commit31cb9160a451dea4a0122cdac1edf4024638d80d (patch)
tree029a52da3fbb993843c31bacb7b0a88c32cfe5b9 /gdb/win32-nat.c
parente7b56a9eaabd2606dd97c44133e14a8f0db55a80 (diff)
downloadgdb-31cb9160a451dea4a0122cdac1edf4024638d80d.tar.gz
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.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r--gdb/win32-nat.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}