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

Re: Compile warnings

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-05-01 19:35:13 CEST

On May 1, 2004, at 12:39 PM, Josh Pieper wrote:

> Chris Foote wrote:
>>
>> Also these.
>>
>> \subversion\subversion\libsvn_fs_fs\fs_fs.c(69) : warning
>> C4101: 'buf' : unreferenced local variable
>> \subversion\subversion\libsvn_client\blame.c(237) : warning
>> C4101: 'change' : unreferenced local variable
>
> Fixed in r9596.

Since we're playing 'report the compiler warning' today:

/bin/sh /Users/rooneg/Hacking/svn/libtool --silent --mode=compile gcc
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -g
-DNEON_ZLIB -DNEON_SSL -DSVN_DEBUG -DAP_DEBUG -Wpointer-arith
-Wwrite-strings -Wshadow -I./subversion/include -I.
-I/Users/rooneg/Hacking/prefix/include/neon
-I/Users/rooneg/Hacking/prefix/include/apr-1
-I/Users/rooneg/Hacking/prefix/include/apr-1
-I/Users/rooneg/Hacking/prefix/include -o
subversion/libsvn_fs_fs/fs_fs.lo -c subversion/libsvn_fs_fs/fs_fs.c
subversion/libsvn_fs_fs/fs_fs.c: In function `hash_write':
subversion/libsvn_fs_fs/fs_fs.c:179: warning: passing arg 3 of
`svn_stream_write' from incompatible pointer type
subversion/libsvn_fs_fs/fs_fs.c: In function `get_root_changes_offset':
subversion/libsvn_fs_fs/fs_fs.c:1066: warning: passing arg 3 of
`svn_io_file_read' from incompatible pointer type

This is on Mac OS X, and appears to be the result of assuming the
apr_size_t and apr_ssize_t are the same size in the first case, and
using an int in place of an apr_size_t in the other.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 1 19:35:29 2004

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.