changeset 11270:e70e12db795d

Avoid a gcc warning.
author Bruno Haible <bruno@clisp.org>
date Fri, 06 Mar 2009 15:52:48 +0100
parents 8fea875fffee
children b974ec85b38c
files ChangeLog lib/w32spawn.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-06  Bruno Haible  <bruno@clisp.org>
+
+	* lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
+	Reported by Eric Blake.
+
 2009-03-06  Eric Blake  <ebb9@byu.net>
             Bruno Haible  <bruno@clisp.org>
 
--- 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 <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
@@ -45,7 +45,7 @@
 			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)