10071 genunix: loadable_syscall: cast between incompatible function types

Review Request #1244 — Created Oct. 16, 2018 and submitted

tsoome
illumos-gate
10071
2d08c57...
general
../../intel/ia32/os/syscall.c: In function 'loadable_syscall':
../../intel/ia32/os/syscall.c:1208:14: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
    sy_call = (int64_t (*)())callp->sy_call;
              ^
../../intel/ia32/os/syscall.c:1222:14: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
    sy_call = (int64_t (*)())callp->sy_call;
              ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 6
  • 0
  • 6
Description From Last Updated
andy_js
  1. Ship It!
  2. 
      
tsoome
rm
  1. Ship It!
  2. 
      
domag02
  1. C style issues.
  2. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    Space followed by tab.
  3. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    If one arm of an if-else statement contains braces, all arms should contain braces.
  4. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    If one arm of an if-else statement contains braces, all arms should contain braces.
  5. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    Space followed by tab.
  6. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    If one arm of an if-else statement contains braces, all arms should contain braces.
  7. usr/src/uts/intel/ia32/os/syscall.c (Diff revision 1)
     
     
    If one arm of an if-else statement contains braces, all arms should contain braces.
  8. 
      
tsoome
domag02
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...