[ https://issues.apache.org/jira/browse/GEODE-8340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156943#comment-17156943 ]
ASF GitHub Bot commented on GEODE-8340: --------------------------------------- pdxcodemonkey commented on a change in pull request #625: URL: https://github.com/apache/geode-native/pull/625#discussion_r453895218 ########## File path: cppcache/include/geode/DataInput.hpp ########## @@ -313,7 +313,53 @@ class APACHE_GEODE_EXPORT DataInput { // empty string break; // TODO: What's the right response here? - default: + case internal::DSCode::FixedIDDefault: Review comment: Sorry, I don't think the chance of getting a warning for free is worth the cost of some egregious cluttering of the code. We're only using 4 of the 61 possible values for a DSCode, so it was kind of an abuse of a switch statement to begin with. This should probably just be a 4-way if-else block. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Enforce Switch compiler warnings as errors > ------------------------------------------ > > Key: GEODE-8340 > URL: https://issues.apache.org/jira/browse/GEODE-8340 > Project: Geode > Issue Type: Improvement > Components: native client > Reporter: Michael Oleske > Priority: Major > > Given I compile the code without exempting no-switch-enum and > no-implicit-fallthrough and no-covered-switch-default > Then it should compile > Note - was marked as a todo, seems reasonable to tackle all these at once -- This message was sent by Atlassian Jira (v8.3.4#803005)