10158 sgs/rtld: cast between incompatible function types

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

tsoome
illumos-gate
10158
264dbfc...
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


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
domag02
  1. Whitespace nit.
  2. usr/src/cmd/sgs/rtld/common/external.c (Diff revision 1)
     
     
    Whitespace followed by tab.
  3. 
      
tsoome
seeemef@mac.com
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...