Skip to content

Global Scope Enumerations Prevent Compilation #178

@Daedelos

Description

@Daedelos

Duplicate global scope enumerations in libraries (or own code) provent compilation.

ezTime.h enum at line 69 -

typedef enum {
NONE,
ERROR,
INFO,
DEBUG
} ezDebugLevel_t;

confilcts with NONE in ESP32SSDP.h

ESP32SSDP.h has a global scope enumeration at line 51 -

typedef enum {
NONE,
SEARCH,
NOTIFY
} ssdp_method_t;

The global scope enumeration elements (NONE, ERROR, INFO, DEBUG) will conflict with any other variables or other enums and prevent compilation.

error: 'NONE' conflicts with a previous declaration is raised by the compiler in my case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions