Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POSIX: fix compiler warnings on windows
This should fix the following warnings: POSIX.c: In function 'XS_POSIX__Termios_getattr': POSIX.c:2126:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_setattr': POSIX.c:2182:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_getispeed': POSIX.c:2249:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_getiflag': POSIX.c:2281:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_getcc': POSIX.c:2334:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_setispeed': POSIX.c:2374:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_setiflag': POSIX.c:2416:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.c: In function 'XS_POSIX__Termios_setcc': POSIX.c:2464:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] termios_ref = (POSIX__Termios)SvPV_nolen(SvRV(sv)); ^ POSIX.xs: In function 'XS_POSIX_ctermid': POSIX.xs:1462:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define ctermid(x) (char *) not_here("ctermid") ^ POSIX.xs:3639:11: note: in expansion of macro 'ctermid' RETVAL = ctermid(s); ^~~~~~~ POSIX.c: In function 'XS_POSIX_ttyname': POSIX.xs:1383:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] # define ttyname(a) (char*)not_here("ttyname") ^ POSIX.c:5453:11: note: in expansion of macro 'ttyname' RETVAL = ttyname(fd); ^~~~~~~
- Loading branch information