Skip to content

static enum #4

@Chainsawkitten

Description

@Chainsawkitten

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions