- Notifications
You must be signed in to change notification settings - Fork146
Move return so that switch has default case#157
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jaredgrubb commentedMay 31, 2022
This style is intentional. There is another warning ( I personally prefer I personally prefer the style as it is (as it's compatible with both |
When a project using docopt.cpp is built with `-Werror=switch-default`option, there's an error```error: switch missing default case [-Werror=switch-default]```which this fixes.Signed-off-by: Eero Aaltonen <eero.aaltonen@vaisala.com>
729cbe7 toaf11f9aCompareeaaltonen commentedApr 11, 2024
I changed the commit so that the warning/error is silenced using a gcc pragma instead. Would you find that acceptable? |
eaaltonen commentedApr 16, 2024
@jaredgrubb Care to take a look? By suppressing the warning the library could be used also by code that compiles with |
Commit
When a project using docopt.cpp is built with
-Werror=switch-defaultoption, there's an error
which this fixes.
Signed-off-by: Eero Aaltoneneero.aaltonen@vaisala.com