Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPP&OCPP201: explicitly handle all cases in switch statements #880

Merged
merged 1 commit into from
Oct 2, 2024

Commits on Oct 2, 2024

  1. OCPP&OCPP201: explicitly handle all cases in switch statements

    Remove default: statements, turn on compiler error on enum conversion switch-case statements. This ensures that all cases are explicitly handled.
    This should also ensure that throw statements in the conversions functions are never be reached, they remain to prevent "control reaches end of non-void function" compiler warnings
    
    Signed-off-by: Kai-Uwe Hermann <[email protected]>
    hikinggrass authored and corneliusclaussen committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    94bf654 View commit details
    Browse the repository at this point in the history