10158 sgs/rtld: cast between incompatible function types

Review Request #1329 - Created Dec. 23, 2018 and submitted

Information
Toomas Soome
illumos-gate
10158
264dbfc...
Reviewers
general
../common/external.c: In function 'rt_thr_init':
../common/external.c:481:6: error: cast between incompatible function types from 'int (*)()' to 'void (*)()' [-Werror=cast-function-type]
      (void (*)())lml->lm_lcs[CI_THRINIT].lc_un.lc_func) != NULL) {
      ^

../common/tls.c: In function 'tls_modaddrem':
../common/tls.c:126:10: error: cast between incompatible function types from 'int (*)()' to 'void (*)()' [-Werror=cast-function-type]
   fptr = (void (*)())lml->lm_lcs[CI_TLS_MODADD].lc_un.lc_func;
          ^
../common/tls.c:128:10: error: cast between incompatible function types from 'int (*)()' to 'void (*)()' [-Werror=cast-function-type]
   fptr = (void (*)())lml->lm_lcs[CI_TLS_MODREM].lc_un.lc_func;
          ^
../common/tls.c: In function 'tls_statmod':
../common/tls.c:263:9: error: cast between incompatible function types from 'int (*)()' to 'void (*)()' [-Werror=cast-function-type]
  fptr = (void (*)())lml->lm_lcs[CI_TLS_STATMOD].lc_un.lc_func;
         ^

cc1: all warnings being treated as errors

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Gergő Mihály Doma
Toomas Soome
C Fraire
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...