2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 22:01:03 +0000 (22:01 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 22:01:03 +0000 (22:01 +0000)
* event-top.c (command_line_handler): Add pedantic return.

gdb/ChangeLog
gdb/event-top.c

index 346f9155e809e71cb68b1bb05dcc630d4bad6833..cedaf0e64c343ef274addcb1e96bb5edc35ec82a 100644 (file)
@@ -1,5 +1,7 @@
 2007-07-31  Michael Snyder  <msnyder@access-company.com>
 
+       * event-top.c (command_line_handler): Add pedantic return.
+
        * f-valprint.c (info_common_command): Bail out to prevent null
        pointer deref.  Break up a long line.
 
index eecff5a063928b02940e4dd5e91d533c654a1f02..b9124ec4580ca97fc62a7e78aec7e94cb6b5d28e 100644 (file)
@@ -673,6 +673,7 @@ command_line_handler (char *rl)
     {
       got_eof = 1;
       command_handler (0);
+      return;                  /* Lint. */
     }
   if (strlen (rl) + 1 + (p - linebuffer) > linelength)
     {