From: Eric Hodel Date: 2011-06-12T10:06:20+09:00 Subject: [ruby-core:37044] [Ruby 1.9 - Bug #1296][Closed] [trunk/22981] 64-bit issues on trunk in ext/zlib Issue #1296 has been updated by Eric Hodel. Status changed from Feedback to Closed I no longer see these warnings on gcc 4.2.1 on OS X 10.6. ---------------------------------------- Bug #1296: [trunk/22981] 64-bit issues on trunk in ext/zlib http://redmine.ruby-lang.org/issues/1296 Author: Ollivier Robert Status: Closed Priority: Low Assignee: Nobuyoshi Nakada Category: ext Target version: 1.9.x ruby -v: ruby 1.9.2dev (2009-03-16) [i386-darwin9.6.0] =begin I've configured Ruby to be compiled in 64-bit mode under OS X 10.5.6 with gcc 4.2. I get the following warnings in ext/zlib which are a bit worrying. gcc-4.2 -I. -I../../.ext/include/i386-darwin9.6.0 -I../../../include -I../../../ext/zlib -DRUBY_EXTCONF_H=\"extconf.h\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O -pipe -m64 -D_FILE_OFFSET_BITS=64 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wshorten-64-to-32 -Wpointer-arith -Wwrite-strings -o zlib.o -c ../../../ext/zlib/zlib.c ../../../ext/zlib/zlib.c: In function ���do_checksum���: ../../../ext/zlib/zlib.c:300: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���zstream_expand_buffer���: ../../../ext/zlib/zlib.c:457: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���zstream_shift_buffer���: ../../../ext/zlib/zlib.c:550: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���zstream_passthrough_input���: ../../../ext/zlib/zlib.c:631: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���zstream_run���: ../../../ext/zlib/zlib.c:707: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���zstream_sync���: ../../../ext/zlib/zlib.c:766: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:770: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���deflate_run���: ../../../ext/zlib/zlib.c:1167: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���do_deflate���: ../../../ext/zlib/zlib.c:1226: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_deflate_set_dictionary���: ../../../ext/zlib/zlib.c:1353: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���inflate_run���: ../../../ext/zlib/zlib.c:1413: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���do_inflate���: ../../../ext/zlib/zlib.c:1467: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_inflate_inflate���: ../../../ext/zlib/zlib.c:1499: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_inflate_addstr���: ../../../ext/zlib/zlib.c:1532: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_inflate_sync���: ../../../ext/zlib/zlib.c:1560: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_inflate_set_dictionary���: ../../../ext/zlib/zlib.c:1602: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_read_raw_ensure���: ../../../ext/zlib/zlib.c:1838: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:1839: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:1841: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_read_raw_until_zero���: ../../../ext/zlib/zlib.c:1859: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_make_header���: ../../../ext/zlib/zlib.c:1923: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:1926: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:1930: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_make_footer���: ../../../ext/zlib/zlib.c:1944: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_read_header���: ../../../ext/zlib/zlib.c:1998: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:2001: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:2008: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:2015: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_read_more���: ../../../ext/zlib/zlib.c:2078: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_calc_crc���: ../../../ext/zlib/zlib.c:2089: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:2093: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzfile_getc���: ../../../ext/zlib/zlib.c:2235: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_gzwriter_write���: ../../../ext/zlib/zlib.c:2817: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���rb_gzreader_ungetc���: ../../../ext/zlib/zlib.c:3147: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c: In function ���gzreader_gets���: ../../../ext/zlib/zlib.c:3246: warning: implicit conversion shortens 64-bit value into a 32-bit value ../../../ext/zlib/zlib.c:3272: warning: implicit conversion shortens 64-bit value into a 32-bit value cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i386-darwin9.6.0/zlib.bundle zlib.o -L. -L../.. -L. -m64 -L/usr/local/lib -lz -lpthread -ldl -lobjc =end -- http://redmine.ruby-lang.org