From: Daniel Berger Date: 2004-08-11T01:55:00+09:00 Subject: Latest warnings from 1.8.2 p2 Hi all, Ruby 1.8.2 preview 2 Solaris 9 gcc 3.3.3 gcc options: -Wall -mcpu=ultrasparc -fno-strict-aliasing configure options: --disable-largefile ncurses 5.4 (latest from blastwave.org) openssl 0.9.7d (latest from blastwave.org) tcl 8.4.2 (latest from blastwave.org) Potentially significant warnings: eval.c:4597: warning: unused variable `yield' io.c:4574: warning: implicit declaration of function `syscall' parse.y:4450: warning: `nodetype' defined but not used parse.y:4457: warning: `nodeline' defined but not used regex.c:2588: warning: `insert_op' defined but not used regex.c:1001: warning: `print_compiled_pattern' defined but not used string.c:1245: warning: unused variable `reg' string.c:1246: warning: unused variable `start' bigdecimal.c:3488: warning: implicit declaration of function `finite' bigdecimal.c:1575: warning: `VpIsNegDoubleZero' defined but not used bigdecimal.c:3549: warning: `VpItoV' defined but not used gcc -Wall -mcpu=ultrasparc -fno-strict-aliasing -Wl,-G -L"/usr/local/src/ruby-1.8.2" -o curses.so curses.o -lncurses -ltermcap -ldl -lm -lc ld: warning: symbol `numcodes' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xa0; file /usr/ccs/lib/libtermcap.so value=0x88); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `numfnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xa0; file /usr/ccs/lib/libtermcap.so value=0x88); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `boolnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xb4; file /usr/ccs/lib/libtermcap.so value=0x98); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `ttytype' has differing sizes: (file /opt/csw/lib/libncurses.so value=0x100; file /usr/ccs/lib/libtermcap.so value=0x400) ; /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `strnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0x67c; file /usr/ccs/lib/libtermcap.so value=0x62c) ; /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `numnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xa0; file /usr/ccs/lib/libtermcap.so value=0x88); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `acs_map' has differing sizes: (file /opt/csw/lib/libncurses.so value=0x200; file /usr/ccs/lib/libtermcap.so value=0x4); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `boolfnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xb4; file /usr/ccs/lib/libtermcap.so value=0x98); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `strfnames' has differing sizes: (file /opt/csw/lib/libncurses.so value=0x67c; file /usr/ccs/lib/libtermcap.so value=0x62c) ; /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `curses_version' has differing types: (file /opt/csw/lib/libncurses.so type=FUNC; file /usr/ccs/lib/libtermcap.so type=OBJT); /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `strcodes' has differing sizes: (file /opt/csw/lib/libncurses.so value=0x67c; file /usr/ccs/lib/libtermcap.so value=0x62c) ; /opt/csw/lib/libncurses.so definition taken ld: warning: symbol `boolcodes' has differing sizes: (file /opt/csw/lib/libncurses.so value=0xb4; file /usr/ccs/lib/libtermcap.so value=0x98); /opt/csw/lib/libncurses.so definition taken dl.c:167: warning: subscript has type `char' dl.c:169: warning: subscript has type `char' ptr.c:572: warning: subscript has type `char' ptr.c:574: warning: subscript has type `char' sym.c:365: warning: unused variable `guard' enumerator.c:110: warning: unused variable `ary' nkf1.7/nkf.c:23: warning: `CopyRight' defined but not used nkf1.7/nkf.c:25: warning: `Version' defined but not used nkf1.7/nkf.c:27: warning: `Patchlevel' defined but not used openssl_missing.c:120: warning: implicit declaration of function `ENGINE_add' ossl.c:429: warning: implicit declaration of function `Init_ossl_pkcs7' pty.c:144: warning: int format, pid_t arg (arg 5) pty.c:405: warning: `freeDevice' defined but not used readline.c:154: warning: subscript has type `char' readline.c:155: warning: subscript has type `char' (many more like these) bytecode.re:218: warning: unused variable `yyaccept' bytecode.re:413: warning: unused variable `yyaccept' bytecode.re:436: warning: unused variable `yyaccept' bytecode.re:136: warning: unused variable `doc_level' rubyext.c:2:1: warning: "/*" within comment rubyext.c: In function `rb_syck_mktime': rubyext.c:240: warning: subscript has type `char' rubyext.c: In function `syck_set_model': rubyext.c:736: warning: implicit declaration of function `syck_parser_set_input_type' token.re:238: warning: control reaches end of non-void function tcltklib.c: In function `ip_ruby_cmd_body': tcltklib.c:1333: warning: unused variable `receiver' tcltklib.c:1334: warning: unused variable `args' tcltklib.c:1335: warning: unused variable `failed' tcltklib.c: In function `ip_eval_real': tcltklib.c:3188: warning: unused variable `s' tcltklib.c:3189: warning: unused variable `len' tcltklib.c: In function `lib_toUTF8_core': tcltklib.c:3471: warning: unused variable `ptr' tcltklib.c: In function `ip_invoke_core': tcltklib.c:3819: warning: unused variable `s' tcltklib.c:3826: warning: unused variable `resultPtr' tcltklib.c: In function `alloc_invoke_arguments': tcltklib.c:3962: warning: unused variable `resultPtr' tcltklib.c: In function `ip_invoke_real': tcltklib.c:4047: warning: unused variable `i' tcltklib.c:4048: warning: unused variable `info' tcltklib.c:4049: warning: unused variable `s' tcltklib.c:4050: warning: unused variable `len' tcltklib.c:4051: warning: unused variable `thr_crit_bup' tcltklib.c:4055: warning: unused variable `resultPtr' tcltklib.c: In function `ip_invoke_with_position': tcltklib.c:4156: warning: unused variable `s' tcltklib.c:4157: warning: unused variable `len' tcltklib.c:4158: warning: unused variable `i' tcltklib.c:4161: warning: unused variable `v' tcltklib.c: In function `ip_unset_variable': tcltklib.c:4712: warning: unused variable `value' tcltklib.c: In function `ip_unset_variable2': tcltklib.c:4741: warning: unused variable `value' tcltklib.c: In function `Init_tcltklib': tcltklib.c:5141: warning: unused variable `thr_crit_bup' /usr/local/src/ruby-1.8.2/ruby.h: At top level: tcltklib.c:982: warning: `ip_ruby_eval_rescue' defined but not used tcltklib.c:1318: warning: `ip_ruby_cmd_rescue' defined but not used tcltklib.c:4271: warning: `ip_invoke_immediate' defined but not used tkutil.c: In function `tk_eval_cmd': tkutil.c:74: warning: unused variable `arg' tkutil.c:75: warning: unused variable `ret' tkutil.c:76: warning: unused variable `status' tkutil.c: In function `cbsubst_initialize': tkutil.c:965: warning: unused variable `proc' tkutil.c: In function `Init_tkutil': tkutil.c:1205: warning: unused variable `tmp' /usr/local/src/ruby-1.8.2/ruby.h: At top level: tkutil.c:191: warning: `fromUTF8_toDefaultEnc' defined but not used tkutil.c:807: warning: `tkstr_to_dec' defined but not used Regards, Dan __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail