Project

General

Profile

Bug #580

Updated by Pierre-Louis Bonicoli over 6 years ago

Current bip fails to build with recent GCC versions and default compiler flags: 
 <pre> 
 

 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 
 </pre> 
 

 Indeed there are two @const "const const char@ char" declarations in @src/log.c@ src/log.c log_part function. I'm attaching a patch that fixes these.

Back