From 58fa08f090cbcafe7dba6835ac8ae7164e46ec0d Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 6 Feb 2002 09:27:29 +0000 Subject: 2002-02-06 Pierre Muller * win32-nat.c (_initialize_check_for_gdb_ini): Add typecast to sprintf argument to suppress a warning. --- gdb/win32-nat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/win32-nat.c') 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); } } -- cgit v1.1