diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-16 16:58:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-16 16:58:28 +0000 |
commit | 1a2cca85d204b81997f2e602f2f447369b8d7f2d (patch) | |
tree | cb3adae3367268bcca7b821a0345649546069335 /winsup | |
parent | b20e2ee66350f6ec9d95acbf3ab9eb0ca0406f31 (diff) | |
download | newlib-1a2cca85d204b81997f2e602f2f447369b8d7f2d.zip newlib-1a2cca85d204b81997f2e602f2f447369b8d7f2d.tar.gz newlib-1a2cca85d204b81997f2e602f2f447369b8d7f2d.tar.bz2 |
* fhandler.cc (fhandler_base::fork_fixup): Guard against compiler warning.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e733ff7..6cd84ca 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2001-10-16 Christopher Faylor <cgf@redhat.com> + + * fhandler.cc (fhandler_base::fork_fixup): Guard against compiler + warning. + 2001-10-16 Corinna Vinschen <corinna@vinschen.de> * autoload.cc: Add load statement for `NtOpenFile'. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index fb8b08a..c12c326 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1629,7 +1629,9 @@ fhandler_base::set_inheritance (HANDLE &h, int not_inheriting) void fhandler_base::fork_fixup (HANDLE parent, HANDLE &h, const char *name) { +#ifdef DEBUGGING HANDLE oh = h; +#endif if (/* !is_socket () && */ !get_close_on_exec ()) debug_printf ("handle %p already opened", h); else if (!DuplicateHandle (parent, h, hMainProc, &h, 0, !get_close_on_exec (), |