From 55fea07b5521471b905a0695f0541cf4ddc130e7 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 14 Sep 1993 01:08:22 +0000 Subject: * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary hack so this file compiles again. * remote-utils.c (gr_multi_scan): Cast return value from alloca. (gr_multi_scan): #if 0 never-reached return(-1). --- gdb/remote-utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/remote-utils.c') diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index 0b570fda78b..290e73fceb9 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -535,7 +535,7 @@ gr_multi_scan (list, passthrough) swallowed_p = swallowed = alloca(max_length << 1); /* and a list of pointers to current scan points. */ - plist = alloca(string_count * sizeof(*plist)); + plist = (char **) alloca (string_count * sizeof(*plist)); /* and initialize */ for (i = 0; i < string_count; ++i) @@ -579,8 +579,10 @@ gr_multi_scan (list, passthrough) swallowed_p = swallowed; } } - +#if 0 + /* Never reached. */ return(-1); +#endif } /* Get ready to modify the registers array. On machines which store -- cgit v1.2.1