]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Update fall-through comment in gdbserver
authorTom Tromey <tromey@adacore.com>
Mon, 4 Dec 2023 15:23:34 +0000 (08:23 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 4 Dec 2023 15:23:34 +0000 (08:23 -0700)
I noticed that gdbserver/win32-low.cc has a fall-through comment that
should have been converted to use the annotation instead.

This patch makes the change.

gdbserver/win32-low.cc

index 9c0a8856ca7e6473ac2eb1576aff5e4ad6456ff6..2711fb335f64af24dbfb98604644a4326bd8abca 100644 (file)
@@ -1237,7 +1237,7 @@ win32_process_target::wait (ptid_t ptid, target_waitstatus *ourstatus,
        default:
          OUTMSG (("Ignoring unknown internal event, %d\n",
                  ourstatus->kind ()));
-         /* fall-through */
+         [[fallthrough]];
        case TARGET_WAITKIND_SPURIOUS:
          /* do nothing, just continue */
          child_continue (continue_status,