-
Couldn't load subscription status.
- Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report template
Describe the bug
Compiling without CMC_CALLBACKS support, generates the following warning with -pedantic:
In file included from /cmc/list.h:84:
/cmc/list/struct.h:43:20: warning: extra ';' inside a struct [-Wextra-semi]
CMC_CALLBACKS_DECL;
Without CMC_CALLBACKS, CMC_CALLBACKS_DECL is expanded to nothing, so CMC_CALLBACKS_DECL; indeed produces a stray semicolon,
Expected behavior
Perhaps suppress the warning somehow with #pragmas, or something like this
struct {
...
#ifdef CMC_CALLBACKS
cmc_callback callbacks:
#endif
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working