summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-02-25 08:59:07 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2014-02-25 08:59:07 +0000
commitc161da64987b034d3b410518a0c174d74958b938 (patch)
treea3d3cb5768be9f7907cea721b79ad03b51b81e0b /win32
parentb057411ddb1a3d8b6ab062d667c8e39f80cd7343 (diff)
downloadperl-c161da64987b034d3b410518a0c174d74958b938.tar.gz
Silence some VC++ compiler warnings
gv.c(1455) : warning C4146: unary minus operator applied to unsigned type, result still unsigned gv.c(1586) : warning C4146: unary minus operator applied to unsigned type, result still unsigned gv.c(2122) : warning C4146: unary minus operator applied to unsigned type, result still unsigned toke.c(12423) : warning C4244: '=' : conversion from 'I32' to 'char', possible loss of data win32.c(3017) : warning C4022: 'SetHandleInformation' : pointer mismatch for actual parameter 1 win32.c(2971) : warning C4101: 'old_h' : unreferenced local variable win32.c(2967) : warning C4101: 'oldfd' : unreferenced local variable
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 2396cc5afe..eb3d428298 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2964,11 +2964,10 @@ win32_popen(const char *command, const char *mode)
int p[2];
int handles[3];
int parent, child;
- int stdfd, oldfd;
+ int stdfd;
int ourmode;
int childpid;
DWORD nhandle;
- HANDLE old_h;
int lock_held = 0;
/* establish which ends read and write */
@@ -3014,7 +3013,7 @@ win32_popen(const char *command, const char *mode)
handles[2] = -1;
/* CreateProcess() requires inheritable handles */
- if (!SetHandleInformation(_get_osfhandle(p[child]), HANDLE_FLAG_INHERIT,
+ if (!SetHandleInformation((HANDLE)_get_osfhandle(p[child]), HANDLE_FLAG_INHERIT,
HANDLE_FLAG_INHERIT)) {
goto cleanup;
}