From: Daniel Berger Date: 2005-11-03T01:22:08+09:00 Subject: 1.8.4 p1, warning roundup Hi all, Solaris 10 gcc 3.4.4 Here's the latest round of warnings from 1.8.4 p1, excluding the "suggested parantheses" and "type punned pointer" warnings: # Make warnings make: Warning: Illegal dependency list for target `.DEFAULT' # Uninitialized warnings eval.c:10708: warning: 'limit' might be used uninitialized in this function process.c:1354: warning: 'hfunc' might be used uninitialized in this function process.c:1357: warning: 'qfunc' might be used uninitialized in this function process.c:1359: warning: 'ifunc' might be used uninitialized in this function util.c:755: warning: 'pMant' might be used uninitialized in this function bigdecimal.c:920: warning: 'iLoc' might be used uninitialized in this function dl.c:536: warning: 'ptr' might be used uninitialized in this function cparse.c:681: warning: 'tmp_t' might be used uninitialized in this function cparse.c:681: warning: 'tmp_v' might be used uninitialized in this function socket.c:1078: warning: 'syscall' might be used uninitialized in this function :545: warning: 'yyaccept' might be used uninitialized in this function :167: warning: 'yyaccept' might be used uninitialized in this function implicit.re:157: warning: 'marker' might be used uninitialized in this function :1622: warning: 'yyaccept' might be used uninitialized in this function rubyext.c:948: warning: 'obj' might be used uninitialized in this function rubyext.c:1803: warning: 'n' might be used uninitialized in this function :1119: warning: 'yyaccept' might be used uninitialized in this function # Unused warnings sym.c:366: warning: unused variable `guard' nkf-utf8/nkf.c:2860: warning: unused variable `val' nkf-utf8/nkf.c:2861: warning: unused variable `ptr' nkf-utf8/nkf.c:2862: warning: unused variable `ndx' nkf-utf8/nkf.c:2863: warning: unused variable `x0212_shiftjis' rubyext.c:901: warning: unused variable `tags' rubyext.c:936: warning: unused variable `type_id' rubyext.c:2042: warning: unused variable `anchor_name' tcltklib.c:1715: warning: unused variable `depth' tcltklib.c:2888: warning: unused variable `ret' tcltklib.c:4581: warning: unused variable `info' tcltklib.c:4582: warning: unused variable `main_win' tcltklib.c:5147: warning: unused variable `info' tcltklib.c:5797: warning: unused variable `st' tcltklib.c:5855: warning: unused variable `exc' tcltklib.c:5857: warning: unused variable `thr_crit_bup' tcltklib.c:6387: warning: unused variable `i' tcltklib.c:6390: warning: unused variable `s' tcltklib.c:6399: warning: unused variable `argc' tcltklib.c:6400: warning: unused variable `argv' tcltklib.c:6401: warning: unused variable `resultPtr' tcltklib.c:6776: warning: unused variable `s' tcltklib.c:6777: warning: unused variable `len' tcltklib.c:6778: warning: unused variable `i' tcltklib.c:7614: warning: unused variable `thr_crit_bup' tkutil.c:81: warning: unused variable `arg' tkutil.c:82: warning: unused variable `ret' tkutil.c:83: warning: unused variable `status' tkutil.c:1148: warning: unused variable `proc' tkutil.c:1518: warning: unused variable `tmp' # Format warnings pty.c:142: warning: int format, pid_t arg (arg 5) tcltklib.c:4377: warning: long unsigned int format, pointer arg (arg 3) tcltklib.c:4386: warning: long unsigned int format, pointer arg (arg 3) tcltklib.c:4387: warning: long unsigned int format, pointer arg (arg 3) # Incompatible pointer warnings ossl_asn1.c:313: warning: passing arg 2 of `d2i_ASN1_BOOLEAN' from incompatible pointer type ossl_asn1.c:328: warning: passing arg 2 of `d2i_ASN1_INTEGER' from incompatible pointer type ossl_asn1.c:347: warning: passing arg 2 of `d2i_ASN1_BIT_STRING' from incompatible pointer type ossl_asn1.c:373: warning: passing arg 2 of `d2i_ASN1_ENUMERATED' from incompatible pointer type ossl_asn1.c:390: warning: passing arg 2 of `d2i_ASN1_NULL' from incompatible pointer type ossl_asn1.c:407: warning: passing arg 2 of `d2i_ASN1_OBJECT' from incompatible pointer type ossl_asn1.c:435: warning: passing arg 2 of `d2i_ASN1_TIME' from incompatible pointer type ossl_asn1.c:727: warning: passing arg 1 of `ASN1_get_object' from incompatible pointer type ossl_ns_spki.c:67: warning: passing arg 2 of `d2i_NETSCAPE_SPKI' from incompatible pointer type ossl_ocsp.c:114: warning: passing arg 2 of `d2i_OCSP_REQUEST' from incompatible pointer type ossl_ocsp.c:321: warning: passing arg 2 of `d2i_OCSP_RESPONSE' from incompatible pointer type ossl_pkcs7.c:90: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_pkcs7.c:103: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_pkcs7.c:116: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_pkcs7.c:129: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_pkey_dsa.c:141: warning: passing arg 1 of `PEM_ASN1_read_bio' from incompatible pointer type ossl_pkey_dsa.c:141: warning: passing arg 4 of `PEM_ASN1_read_bio' from incompatible pointer type ossl_pkey_dsa.c:313: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_x509attr.c:100: warning: passing arg 2 of `d2i_X509_ATTRIBUTE' from incompatible pointer type ossl_x509ext.c:269: warning: passing arg 2 of `d2i_X509_EXTENSION' from incompatible pointer type ossl_x509name.c:135: warning: passing arg 2 of `d2i_X509_NAME' from incompatible pointer type ossl_x509revoked.c:48: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type ossl_x509revoked.c:64: warning: passing arg 2 of `ASN1_dup' from incompatible pointer type # Disturbing linker warnings 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 # More on the make warning, from the make man page: .DEFAULT: If it has an entry in the makefile, the rule for this target is used to process a target when there is no other entry for it, no rule for building it, and no SCCS history file from which to retrieve a current version. make ignores any dependencies for this target. Regards, Dan