Project

General

Profile

Bug #12124

Updated by Toomas Soome over 1 year ago

Build errors with gcc 8: 
 <pre> 
     ../common/initialize.c:127:21: error: cast between incompatible function types from 'int (*)(const char *, const char *)' to 'int (*)(void *, void *, flag_t)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 
        S->m_compare_fn = (cmp_fcn_t)strcoll; 
                          ^ 
     ../common/initialize.c:156:21: error: cast between incompatible function types from 'int (*)(const wchar_t *, const wchar_t *)' {aka 'int (*)(const long int *, const long int *)'} to 'int (*)(void *, void *, flag_t)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 
        S->m_compare_fn = (cmp_fcn_t)wcscoll; 
                          ^ 
     cc1: all warnings being treated as errors 

 </pre> 

 Testing done: build/install/boot

Back