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

Type narrowing warnings on Mac OS x64 as of r1349288

From: Branko Čibej <brane_at_apache.org>
Date: Tue, 12 Jun 2012 14:22:35 +0200

Better than spamming #svn-dev, here's the current list of 64-32bit
narrowing warnings I get on my 64-bit mac wit Xcode 4.3.3's gcc. Taking
a quick look at these, every case appears to be a valid warning that
needs to be looked at and verified that the narrowing doesn't affect the
value.

i don't know why these warnings don't show up on Linux and/or with newer
versions of GCC.

-- Brane

subversion/libsvn_subr/adler32.c: In function 'svn__adler32':
subversion/libsvn_subr/adler32.c:64: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_subr/cache-membuffer.c: In function 'svn_cache__membuffer_cache_create':
subversion/libsvn_subr/cache-membuffer.c:1078: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_subr/gpg_agent.c: In function 'receive_from_gpg_agent':
subversion/libsvn_subr/gpg_agent.c:117: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_subr/string.c: In function 'svn__ui64toa':
subversion/libsvn_subr/string.c:979: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_subr/string.c:1010: warning: function returns address of local variable

subversion/libsvn_fs_base/bdb/strings-table.c: In function 'svn_fs_bdb__string_read':
subversion/libsvn_fs_base/bdb/strings-table.c:239: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_fs_base/bdb/strings-table.c:241: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_fs_base/key-gen.c: In function 'svn_fs_base__next_key':
subversion/libsvn_fs_base/key-gen.c:42: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_fs_base/key-gen.c:55: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_fs_base/key-gen.c: In function 'svn_fs_base__key_compare':
subversion/libsvn_fs_base/key-gen.c:108: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_fs_base/key-gen.c:109: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_ra_svn/cyrus_auth.c: In function 'sasl_read_cb':
subversion/libsvn_ra_svn/cyrus_auth.c:646: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_ra_svn/cyrus_auth.c: In function 'svn_ra_svn__do_cyrus_auth':
subversion/libsvn_ra_svn/cyrus_auth.c:874: warning: assignment from incompatible pointer type
subversion/libsvn_ra_svn/cyrus_auth.c:879: warning: assignment from incompatible pointer type

subversion/libsvn_wc/old-and-busted.c: In function 'opt_revision_to_string':
subversion/libsvn_wc/old-and-busted.c:385: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_ra_serf/replay.c: In function 'svn_ra_serf__replay_range':
subversion/libsvn_ra_serf/replay.c:857: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/libsvn_ra_serf/util.c: In function 'svn_ra_serf__context_run_wait':
subversion/libsvn_ra_serf/util.c:724: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/libsvn_ra_serf/update.c: In function 'finish_report':
subversion/libsvn_ra_serf/update.c:2419: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/svnserve/cyrus_auth.c: In function 'canonicalize_username':
subversion/svnserve/cyrus_auth.c:64: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/svnserve/cyrus_auth.c: At top level:
subversion/svnserve/cyrus_auth.c:101: warning: initialization from incompatible pointer type
subversion/svnserve/cyrus_auth.c: In function 'try_auth':
subversion/svnserve/cyrus_auth.c:188: warning: implicit conversion shortens 64-bit value into a 32-bit value
subversion/svnserve/cyrus_auth.c:212: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/tests/svn_test_main.c: In function 'svn_test_rand':
subversion/tests/svn_test_main.c:167: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/tests/libsvn_repos/repos-test.c: In function 'get_logs':
subversion/tests/libsvn_repos/repos-test.c:2381: warning: implicit conversion shortens 64-bit value into a 32-bit value

subversion/mod_dav_svn/liveprops.c: In function 'insert_prop_internal':
subversion/mod_dav_svn/liveprops.c:766: warning: implicit conversion shortens 64-bit value into a 32-bit value
Received on 2012-06-12 14:22:43 CEST

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.