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

Global Scope Enumerations Prevent Compilation #178

Open
Daedelos opened this issue May 1, 2024 · 0 comments
Open

Global Scope Enumerations Prevent Compilation #178

Daedelos opened this issue May 1, 2024 · 0 comments

Comments

@Daedelos
Copy link

Daedelos commented May 1, 2024

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

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

No branches or pull requests

1 participant