From afb5335bf3396447d19db4816bcd520bafb4779d Mon Sep 17 00:00:00 2001
From: Peter Cock
Date: Fri, 13 Mar 2026 22:59:54 +0000
Subject: [PATCH] Switch missing default handler in OS detection docs (#26064)
Switch was missing default handler: control reaches end of non-void function
This warning gets treated as an error on Github Actions
---
docs/features/os_detection.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/features/os_detection.md b/docs/features/os_detection.md
index 880e88d4b9..093e9a78d3 100644
--- a/docs/features/os_detection.md
+++ b/docs/features/os_detection.md
@@ -136,6 +136,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
print_stored_setups();
}
return false;
+ default:
+ return true; // Process all other keycodes normally
}
}
```