Avoid a gcc warning.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Mar 2009 14:52:48 +0000 (15:52 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 6 Mar 2009 14:52:48 +0000 (15:52 +0100)
ChangeLog
lib/w32spawn.h

index 0ce35d029949406c3c60bd721bc326cf3f279492..cd19322ab5b34f8368d942a7f4ffe526149302e2 100644 (file)
--- 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>
 
index 9ebf5bc49c9c913d59f4a1a3e05693197c0fe2e7..ee286dd8cc5b556cf5bfa839689a2382960d1cf7 100644 (file)
@@ -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 @@ 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)