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

Fix for #416, Implicit falltrough warning on GCC7.1 (Re-sending) #432

Merged
merged 3 commits into from
Sep 7, 2017
Merged

Fix for #416, Implicit falltrough warning on GCC7.1 (Re-sending) #432

merged 3 commits into from
Sep 7, 2017

Conversation

furkanusta
Copy link
Contributor

Although, I've opened a PR in #427, it got closed and says that it is merged. However, it also shows that no files are changed and I cannot find the commit message that shows it got merged. Thus, I am re-sending this pull request, with the fix that I've mentioned in that PR.

This one also fixes the build problem submitted in PR #431.

Instead of adding std::fallthrough, this one disables
implicit-fallthrough warnings via pragma push/pop mechanism
Also, this one fixes the forgotten pragma pop at the end of the header file
@@ -68,6 +68,11 @@ namespace cereal
#include <vector>
#include <string>

#if defined(__clang__) or (defined(__GNUC__) and __GNUC__ >= 7)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the or and and need to be changed to boolean operators (|| and &&) to make MSVC happy

Apparently literal words cause problems in MSVC
@furkanusta
Copy link
Contributor Author

Fixed, I didn't even thought that would cause a problem, thus didn't check Appveyor results.

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

Successfully merging this pull request may close these issues.

2 participants