From b306df5a6060beea82b5157c3603593527b220b0 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: --- os/WaitFor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/WaitFor.c b/os/WaitFor.c index dac1b83b4..7f64c336b 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -415,13 +415,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; }