From 9a763152b1f0e2fb432060d2d82650ef02dc98ec Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 9 Sep 2024 16:21:46 -0700 Subject: [PATCH] os: NextDPMSTimeout: mark intentional fallthroughs in switch The comment at the top of the function tells humans the fallthroughs are intentional, but gcc doesn't parse that. Clears 3 -Wimplicit-fallthrough warnings from gcc 14.1 Signed-off-by: Alan Coopersmith Part-of: (cherry picked from commit b306df5a6060beea82b5157c3603593527b220b0) --- os/WaitFor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/WaitFor.c b/os/WaitFor.c index 592e0a619..b0747faee 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -418,13 +418,13 @@ NextDPMSTimeout(INT32 timeout) switch (DPMSPowerLevel) { case DPMSModeOn: DPMS_CHECK_TIMEOUT(DPMSStandbyTime) - + /* fallthrough */ case DPMSModeStandby: DPMS_CHECK_TIMEOUT(DPMSSuspendTime) - + /* fallthrough */ case DPMSModeSuspend: DPMS_CHECK_TIMEOUT(DPMSOffTime) - + /* fallthrough */ default: /* DPMSModeOff */ return 0; }