From b0612f4cd7a4a11c1bce4871e97fe2451b14b2b5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 6 Mar 2009 15:52:48 +0100 Subject: [PATCH] Avoid a gcc warning. --- ChangeLog | 5 +++++ lib/w32spawn.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ce35d0299..cd19322ab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-06 Bruno Haible + + * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning. + Reported by Eric Blake. + 2009-03-06 Eric Blake Bruno Haible diff --git a/lib/w32spawn.h b/lib/w32spawn.h index 9ebf5bc49c..ee286dd8cc 100644 --- a/lib/w32spawn.h +++ b/lib/w32spawn.h @@ -1,5 +1,5 @@ /* Auxiliary functions for the creation of subprocesses. Native Woe32 API. - Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -45,7 +45,7 @@ dup_noinherit (int fd) FALSE, /* InheritHandle */ DUPLICATE_SAME_ACCESS)) /* Options */ error (EXIT_FAILURE, 0, _("DuplicateHandle failed with error code 0x%08x"), - GetLastError ()); + (unsigned int) GetLastError ()); nfd = _open_osfhandle ((long) new_handle, O_BINARY); if (nfd < 0) -- 2.30.2