On Fri Mar 21 11:15:51 2008, [EMAIL PROTECTED] wrote:
> 1) Calling _dup() instead of the deprecated dup() in src/io/io.c, and
> src/io/io_unix.c
> 2) Created macro PIO_DUP_FD(x) to handle duplication and typecasting
> (may be overkill)
> 3) Used PIO_DUP_FD(x) in src/io/io.c to help alleviate warnings
> 4) Added a typecast from an integer to a PIOHANDLE to help alleviate a
> warning about a comparison.

I've committed a patch similar to this as 26548.  The macro is called
Parrot_dup, and src/io/io.c and src/io/io_unix.c call that.  The main
difference is, it's only defined to _dup on Win32/MSVC; all other
platforms still just call dup().

Hope it works.  Feel free to reopen this ticket if it doesn't get all
the warnings.

Reply via email to