10372 vmem: cast between incompatible function types

Review Request #1447 — Created Feb. 11, 2019 and submitted

tsoome
illumos-gate
10372
4b8e906...
general
../../common/os/vmem.c: In function 'vmem_xalloc':
../../common/os/vmem.c:1107:14: error: cast between incompatible function types from 'void * (*)(vmem_t *, size_t,  int)' {aka 'void * (*)(struct vmem *, long unsigned int,  int)'} to 'void * (*)(vmem_t *, size_t *, size_t,  int)' {aka 'void * (*)(struct vmem *, long unsigned int *, long unsigned int,  int)'} [-Werror=cast-function-type]
     vaddr = ((vmem_ximport_t *)
              ^
../../common/os/vmem.c: In function 'vmem_xcreate':
../../common/os/vmem.c:1583:6: error: cast between incompatible function types from 'void * (*)(vmem_t *, size_t *, size_t,  int)' {aka 'void * (*)(struct vmem *, long unsigned int *, long unsigned int,  int)'} to 'void * (*)(vmem_t *, size_t,  int)' {aka 'void * (*)(struct vmem *, long unsigned int,  int)'} [-Werror=cast-function-type]
      (vmem_alloc_t *)afunc, ffunc, source, qcache_max,
      ^
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...