aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-31 22:01:03 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-31 22:01:03 +0000
commit40742ab60acd9f4e347ee28d7087348b8b6c9912 (patch)
treeebdd02c04726064b92c77d6899fab135bb9b2d84
parent7c6e0d4812e589c911fd4d5f6c336f56f8ef2686 (diff)
downloadgdb-40742ab60acd9f4e347ee28d7087348b8b6c9912.zip
gdb-40742ab60acd9f4e347ee28d7087348b8b6c9912.tar.gz
gdb-40742ab60acd9f4e347ee28d7087348b8b6c9912.tar.bz2
2007-07-31 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Add pedantic return.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/event-top.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 346f915..cedaf0e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/event-top.c b/gdb/event-top.c
index eecff5a..b9124ec 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -673,6 +673,7 @@ command_line_handler (char *rl)
{
got_eof = 1;
command_handler (0);
+ return; /* Lint. */
}
if (strlen (rl) + 1 + (p - linebuffer) > linelength)
{