Skip to content

Conversation

ellio167
Copy link

With current master and GCC 7 or above (GCC 9 in this specific example) I see:

$ g++-9 -Wextra  example.cpp
In file included from example.cpp:2:
edn.hpp: In function 'std::string edn::escapeQuotes(const string&)':
edn.hpp:390:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  390 |           after += '\\';
      |                    ^~~~
edn.hpp:391:9: note: here
  391 |         default:
      |         ^~~~~~~

To avoid this, I've switched to an equivalent if() statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant