# HG changeset patch # User Bruno Haible # Date 1249945388 -7200 # Node ID e85033114fc582472952fbdcd29675b86f82a3f5 # Parent b1c2dce4c2c5bc8b303cfd81de89b809d81ce7cc Fix a gcc warning. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-10 Bruno Haible + + Fix a gcc warning. + * lib/write.c (rpl_write): Cast result of _get_osfhandle. + 2009-08-10 Bruno Haible Don't optimize AC_LIBOBJs, as they may appear in different contexts. diff --git a/lib/write.c b/lib/write.c --- a/lib/write.c +++ b/lib/write.c @@ -1,5 +1,5 @@ /* POSIX compatible write() function. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -46,7 +46,7 @@ if (ret < 0) { if (GetLastError () == ERROR_NO_DATA - && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE) + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE) { /* Try to raise signal SIGPIPE. */ raise (SIGPIPE);