10345 segspt_badop: cast between incompatible function types

Review Request #1428 — Created Feb. 5, 2019 and submitted

tsoome
illumos-gate
10345
536c46e...
general
from 'void (*)()' to 'int (*)()' [-Werror=cast-function-type]
 #define SEGSPT_BADOP(t) (t(*)())segspt_badop


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
andy_js
  1. Looks good.  Though I wonder if you should be using __func__ here.
  2. 
      
domag02
  1. 
      
  2. usr/src/uts/common/vm/seg_spt.c (Diff revision 1)
     
     

    Missing /* ARGSUSED */.

  3. 
      
tsoome
domag02
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...