Actions
Bug #580
closed'const const char' declarations break build with recent GCC
Start date:
2017-07-25
Due date:
% Done:
100%
Estimated time:
Patch Available:
Yes
Found in Versions:
Confirmed:
Yes
Branch:
Security:
No
Help Needed:
No
Description
Current bip fails to build with recent GCC versions and default compiler flags:
src/log.c:442:37: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] void log_part(log_t *logdata, const const char *ircmask, const char *channel, ^~~~~ src/log.c:443:9: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier] const const char *message) ^~~~~ cc1: all warnings being treated as errors
Indeed there are two
const const char
declarations in src/log.c
log_part function. I'm attaching a patch that fixes these.
Actions