Browse Source

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
Peter Cock 4 months ago
parent
commit
afb5335bf3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/features/os_detection.md

+ 2 - 0
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
     }
 }
 ```