From ad829f3e14ce8702551329a5c9b1deda98c1f386 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 8 Dec 2022 16:50:16 -0800 Subject: NEOPreInit: Handle -Wimplicit-fallthrough warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit neo_driver.c: In function ‘NEOPreInit’: neo_driver.c:892:9: warning: this statement may fall through [-Wimplicit-fallthrough=] if (nPtr->NeoChipset != NM2070) ^ neo_driver.c:894:2: note: here default: ^~~~~~~ Signed-off-by: Alan Coopersmith --- src/neo_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/neo_driver.c b/src/neo_driver.c index e145d66..9154326 100644 --- a/src/neo_driver.c +++ b/src/neo_driver.c @@ -891,6 +891,7 @@ NEOPreInit(ScrnInfoPtr pScrn, int flags) case 24: if (nPtr->NeoChipset != NM2070) break; + /* FALLTHROUGH */ default: xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Given depth (%d) is not supported by this driver\n", -- cgit v1.2.3