From cbc2c654e4099e4d8a35e625e010fd73e7a75521 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 (cherry picked from commit b306df5a6060beea82b5157c3603593527b220b0) Part-of: --- os/WaitFor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/WaitFor.c b/os/WaitFor.c index ff1d376e9..d03670f7d 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; }