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 <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1716>
This commit is contained in:
parent
e12d9863fd
commit
b306df5a60
|
@ -415,13 +415,13 @@ NextDPMSTimeout(INT32 timeout)
|
||||||
switch (DPMSPowerLevel) {
|
switch (DPMSPowerLevel) {
|
||||||
case DPMSModeOn:
|
case DPMSModeOn:
|
||||||
DPMS_CHECK_TIMEOUT(DPMSStandbyTime)
|
DPMS_CHECK_TIMEOUT(DPMSStandbyTime)
|
||||||
|
/* fallthrough */
|
||||||
case DPMSModeStandby:
|
case DPMSModeStandby:
|
||||||
DPMS_CHECK_TIMEOUT(DPMSSuspendTime)
|
DPMS_CHECK_TIMEOUT(DPMSSuspendTime)
|
||||||
|
/* fallthrough */
|
||||||
case DPMSModeSuspend:
|
case DPMSModeSuspend:
|
||||||
DPMS_CHECK_TIMEOUT(DPMSOffTime)
|
DPMS_CHECK_TIMEOUT(DPMSOffTime)
|
||||||
|
/* fallthrough */
|
||||||
default: /* DPMSModeOff */
|
default: /* DPMSModeOff */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue