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

Warnings when compiling with VC2003

From: D.J. Heap <dj_at_shadyvale.net>
Date: 2004-01-16 19:36:04 CET

I still get a fair number of warnings when building with MS's VC2003
compiler -- a trimmed build log is attached for those interested.

Most of them are about apr_uint64_t or apr_off_t being implicitly
converted to a smaller type.

The linker optimization warnings (LNK4089) are just notifications that
the linker found no actual references to a library that was specified,
so it is dropping the library.

DJ

------ Build started: Project: libsvn_ra_svn, Configuration: Release Win32 ------

Compiling...
marshal.c
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(509) : warning C4244: 'function' : conversion from 'apr_uint64_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(510) : warning C4244: 'function' : conversion from 'apr_uint64_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(515) : warning C4244: '=' : conversion from 'apr_uint64_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(599) : warning C4244: '=' : conversion from 'apr_uint64_t' to 'svn_revnum_t', possible loss of data
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(734) : warning C4244: 'function' : conversion from 'apr_uint64_t' to 'apr_status_t', possible loss of data
\Projects\Subversion\subversion\libsvn_ra_svn\marshal.c(736) : warning C4244: '=' : conversion from 'apr_uint64_t' to 'long', possible loss of data
editorp.c
editor.c
cram.c
client.c
\Projects\Subversion\subversion\libsvn_ra_svn\client.c(454) : warning C4090: 'function' : different 'const' qualifiers
\Projects\Subversion\subversion\libsvn_ra_svn\client.c(569) : warning C4244: '=' : conversion from 'apr_uint64_t' to 'int', possible loss of data
Generating Code...
Creating library...

libsvn_ra_svn - 0 error(s), 8 warning(s)

------ Build started: Project: libsvn_diff, Configuration: Release Win32 ------

Compiling...
util.c
token.c
lcs.c
diff_file.c
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(159) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(173) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(175) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(217) : warning C4244: '=' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(271) : warning C4244: '=' : conversion from 'apr_off_t' to 'int', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(319) : warning C4244: '=' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(407) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
\Projects\Subversion\subversion\libsvn_diff\diff_file.c(418) : warning C4244: 'function' : conversion from 'apr_off_t' to 'size_t', possible loss of data
diff4.c
diff3.c
diff.c
Generating Code...
Creating library...

libsvn_diff - 0 error(s), 8 warning(s)

------ Build started: Project: svndumpfilter, Configuration: Release Win32 ------

Compiling...
main.c
\Projects\Subversion\subversion\svndumpfilter\main.c(55) : warning C4042: 'open_fn' : has bad storage class
Compiling resources...
Linking...
LINK : warning LNK4089: all references to 'libdb42.dll' discarded by /OPT:REF

svndumpfilter - 0 error(s), 2 warning(s)

------ Build started: Project: svnadmin, Configuration: Release Win32 ------

Compiling...
main.c
\Projects\Subversion\subversion\svnadmin\main.c(62) : warning C4042: 'open_fn' : has bad storage class
Compiling resources...
Linking...

svnadmin - 0 error(s), 1 warning(s)

------ Build started: Project: svnserve, Configuration: Release Win32 ------

Compiling...
serve.c
\Projects\Subversion\subversion\svnserve\serve.c(1069) : warning C4244: '=' : conversion from 'apr_uint64_t' to 'int', possible loss of data
main.c
Generating Code...
Compiling resources...
Linking...
LINK : warning LNK4089: all references to 'SHFOLDER.dll' discarded by /OPT:REF

svnserve - 0 error(s), 2 warning(s)

------ Build started: Project: svn_push, Configuration: Release Win32 ------

Compiling...
svn-push.c
\Projects\Subversion\contrib\client-side\svn-push\svn-push.c(88) : warning C4101: 'ab' : unreferenced local variable
\Projects\Subversion\contrib\client-side\svn-push\svn-push.c(87) : warning C4101: 'src_callbacks' : unreferenced local variable
\Projects\Subversion\contrib\client-side\svn-push\svn-push.c(89) : warning C4101: 'providers' : unreferenced local variable
\Projects\Subversion\contrib\client-side\svn-push\svn-push.c(153) : warning C4013: 'svn_cmdline_init' undefined; assuming extern returning int
\Projects\Subversion\contrib\client-side\svn-push\svn-push.c(149) : warning C4101: 's' : unreferenced local variable
Linking...

svn_push - 0 error(s), 5 warning(s)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 16 19:36:34 2004

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