public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Remove incorrect "fall-through" comment
@ 2023-12-04 16:00 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-12-04 16:00 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

I found a "fall-through" comment in gdb/remote.c that was incorrect --
the code here cannot in fact fall through.
---
 gdb/remote.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gdb/remote.c b/gdb/remote.c
index 8ccc1266073..84daa8567b6 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10044,7 +10044,6 @@ remote_target::putpkt_binary (const char *buf, int cnt)
 					      rs->buf.data ());
 		continue;
 	      }
-	      /* fall-through */
 	    default:
 	      remote_debug_printf_nofunc ("Junk: %c%s", ch & 0177,
 					  rs->buf.data ());
-- 
2.41.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-04 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-04 16:00 [pushed] Remove incorrect "fall-through" comment Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).