summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2012-08-29 10:55:12 -0400
committerTony Cook <tony@develop-help.com>2012-08-30 10:59:59 +1000
commitba495c01e84f3a93c5b0fd5fb1064683ada8bab7 (patch)
tree190d3dea0acc4707db70f3c8719e2def617904f2 /cygwin
parent28453e5f3d3167d0f1a72abc434059ee99c2ef96 (diff)
downloadperl-ba495c01e84f3a93c5b0fd5fb1064683ada8bab7.tar.gz
Fix Cygwin build warnings
Fixes the following build warnings under Cygwin: cygwin.c: In function 'do_spawn': cygwin.c:132:5: warning: assignment from incompatible pointer type cygwin.c: In function 'XS_Cygwin_posix_to_win_path': cygwin.c:346:9: warning: 'err' may be used uninitialized in this function cygwin.c: In function 'XS_Cygwin_win_to_posix_path': cygwin.c:257:9: warning: 'err' may be used uninitialized in this function
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/cygwin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c
index 29ee22e0fa..87401d1dab 100644
--- a/cygwin/cygwin.c
+++ b/cygwin/cygwin.c
@@ -129,7 +129,7 @@ do_spawn (char *cmd)
return do_spawnvp("sh",command);
}
- Newx (PL_Argv,(s-cmd)/2+2,char*);
+ Newx (PL_Argv, (s-cmd)/2+2, const char*);
PL_Cmd=savepvn (cmd,s-cmd);
a=PL_Argv;
for (s=PL_Cmd; *s;) {
@@ -254,7 +254,7 @@ XS(XS_Cygwin_win_to_posix_path)
dXSARGS;
int absolute_flag = 0;
STRLEN len;
- int err;
+ int err = 0;
char *src_path;
char *posix_path;
int isutf8 = 0;
@@ -343,7 +343,7 @@ XS(XS_Cygwin_posix_to_win_path)
dXSARGS;
int absolute_flag = 0;
STRLEN len;
- int err;
+ int err = 0;
char *src_path, *win_path;
int isutf8 = 0;