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

static enum #4

Open
Chainsawkitten opened this issue Nov 22, 2017 · 0 comments · May be fixed by #11
Open

static enum #4

Chainsawkitten opened this issue Nov 22, 2017 · 0 comments · May be fixed by #11

Comments

@Chainsawkitten
Copy link

etcpack.cxx (possibly other files) extensively uses static enum. This is not valid C/C++ (and doesn't make any sense). static determines how storage should be allocated but an enum-declaration does not allocate storage.

This means it compiles in MSVC but not in MinGW (I assume not gcc as well, or MSVC when using /permissive-).

The solution is to simple replace static enum with enum.

@yoanlcq yoanlcq linked a pull request Apr 8, 2019 that will close this issue
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 a pull request may close this issue.

1 participant