Move return so that switch has default case#157
Move return so that switch has default case#157eaaltonen wants to merge 1 commit intodocopt:masterfrom
Conversation
|
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 to
af11f9a
Compare
|
I changed the commit so that the warning/error is silenced using a gcc pragma instead. Would you find that acceptable? |
|
@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 Aaltonen eero.aaltonen@vaisala.com