Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: db13d3be7689b80baf7a315f26a198e88ba6a4d7 https://github.com/Perl/perl5/commit/db13d3be7689b80baf7a315f26a198e88ba6a4d7 Author: Lukas Mai <lukasmai....@gmail.com> Date: 2023-07-03 (Mon, 03 Jul 2023)
Changed paths: M ext/POSIX/POSIX.xs Log Message: ----------- 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); ^~~~~~~