[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix warnings in the Windows build of the Perl bindings

From: David James <james82_at_gmail.com>
Date: 2005-08-29 00:53:20 CEST

On 8/28/05, Branko ibej <brane@xbc.nu> wrote:
> subversion\bindings\swig\perl\libsvn_swig_perl\swigutil_pl.c(1373) : warning C4047: 'initializing' : 'void *' differs in levels of indirection from 'int '
> subversion\bindings\swig\perl\native\svn_client.c(4495) : warning C4013: 'svn_parse_date' undefined; assuming extern returning int
> subversion\bindings\swig\perl\native\svn_client.c(4496) : warning C4047: '=' : 'struct svn_error_t *' differs in levels of indirection from 'int '
[ ... snip dozens more C4047 warnings from svn_client.c ... ]
> subversion\bindings\swig\perl\native\svn_client.c(13204) : warning C4047: '=' : 'struct svn_error_t *' differs in levels of indirection from 'int '
> subversion\bindings\swig\perl\native\svn_wc.c(2614) : warning C4013: 'svn_parse_date' undefined; assuming extern returning int
> subversion\bindings\swig\perl\native\svn_wc.c(2615) : warning C4047: '=' : 'struct svn_error_t *' differs in levels of indirection from 'int '

That's quite a few warnings! I've attached a patch, which should
hopefully greatly reduce the number of warnings in the Windows build
of the Perl bindings.

[[[

Fix warnings in the Windows build of Perl bindings.

* swig/perl/libsvn_swig_perl/swigutil_pl.c
  (svn_swig_pl_make_file): Cast the return value from PerlIO_fileno to
  apr_os_file_t, to avoid warnings in the windows build of the Perl
  bindings.
* swig/include/svn_global.swg:
  Include svn_time.h, so that the return type of svn_parse_date will
  be defined.

]]]

Cheers,

David

-- 
David James -- http://www.cs.toronto.edu/~james


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Aug 29 00:54:00 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.