summaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-23 03:00:57 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-23 03:00:57 +0000
commit0dae80fb9fd4dbf5adde42aa0cb8016a3de9ac05 (patch)
tree5391c01b28a4c3dbac08e11d6b24a57886bc9641 /gdb/top.c
parent2699b55694636c65b6e80f2f657cfcbc468b443f (diff)
downloadgdb-0dae80fb9fd4dbf5adde42aa0cb8016a3de9ac05.tar.gz
* findvar.c (extract_signed_integer): Cast printf argument
to suppress format warning. (extract_unsigned_integer): Likewise. * infcmd.c (registers_info): Likewise. * top.c (get_prompt_1): Likewise. * valops.c (value_assign): Likewise. * valprint.c (print_decimal): Likewise.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 200d699344b..4749c381809 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1435,7 +1435,7 @@ get_prompt_1 (void *data)
if (*promptp != gdb_prompt_escape)
error ("Syntax error at prompt position %d",
- promptp - local_prompt);
+ (int) (promptp - local_prompt));
else
{
promptp++; /* skip second escape char */
@@ -1581,7 +1581,7 @@ get_prompt_1 (void *data)
break; /* void type -- no output */
default:
error ("bad data type at prompt position %d",
- promptp - local_prompt);
+ (int) (promptp - local_prompt));
break;
}
outp += strlen (outp);