From: matz@... (Yukihiro Matsumoto) Date: 2003-07-25T14:10:32+09:00 Subject: Re: ruby 1.8.0 preview4 Hi, In message "Re: ruby 1.8.0 preview4" on 03/07/25, the_rev_dharma_roadkill writes: |cc: Warning: array.c, line 1820: In this statement, the referencedtype of the pointer value "&v" is "unsigned long", which is not compatible with"long" because they differ by signed/unsigned attribute. (ptrmismatch1) | if (st_delete(RHASH(hash)->tbl, &v, 0)) { |----------------------------------------^ |There are 95 warnings of this type (ptrmismatch1). They are harmless. I think I can pacify them. |There are 6 more warnings left: |1) |cc -ieee -g -oldc -std -I. -I. -c file.c |cc: Warning: file.c, line 1048: Non-void function "rb_file_s_lchmod" |does not co |ntain a return statement. (missingreturn) |static VALUE Fixed. |2) |cc -ieee -g -oldc -std -I. -I. -c process.c |cc: Warning: process.c, line 1478: Non-void function "p_sys_issetugid" |does not |contain a return statement. (missingreturn) |static VALUE Fixed. |3) |cc -ieee -g -oldc -std -I. -I/u13/home/doug/ruby/ruby-1.8.0 |-I/u13/home/doug/rub |y/ruby-1.8.0 -I/u13/home/doug/ruby/ruby-1.8.0/ext/curses |-DHAVE_CURSES_H -DHAVE_ |ISENDWIN -DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_GETNSTR -DHAVE_WGETNSTR |-DHAVE_DOUPDA |TE -DHAVE_FLASH -DHAVE_DELETELN -DHAVE_WDELETELN -DHAVE_KEYPAD |-DHAVE_KEYNAME -D |HAVE_INIT_COLOR -c curses.c |cc: Warning: curses.c, line 434: In this statement, "keyname(...)" of |type "int" |, is being converted to "pointer to const char". (cvtdiftypes) | name = keyname(NUM2INT(c)); |--^ I don't understand. this means configure found 'keyname' from your curses library, but it is not declared in the header files. Strange. |4) |cc -Dsocklen_t=int -DHAVE_GETADDRINFO -DHAVE_SOCKADDR_STORAGE -DINET6 |-ieee -g - |oldc -std -DENABLE_IPV6 -I. -I/u13/home/doug/ruby/ruby-1.8.0 |-I/u13/home/doug/ru |by/ruby-1.8.0 -I/u13/home/doug/ruby/ruby-1.8.0/ext/socket |-DHAVE_NETINET_TCP_H - |DHAVE_NETINET_UDP_H -DHAVE_ST_MSG_ACCRIGHTS -DHAVE_GETADDRINFO |-DHAVE_GETNAMEINF |O -DHAVE_SYS_UN_H -DHAVE_SYS_UIO_H -DHAVE_SOCKET -DHAVE_GETHOSTNAME |-c socket.c |cc: Warning: socket.c, line 1127: The scalar variable "size" is |fetched but not |initialized. And there may be other such fetches of this variable |that have not | been reported in this compilation. (uninit1) | memcpy((char*)&sin6.sin6_addr, *pch, size); |-------------------------------------------------^ This was a important bug. Thank you. |5) |cc -ieee -g -oldc -std -I. -I/u13/home/doug/ruby/ruby-1.8.0 |-I/u13/home/doug/rub |y/ruby-1.8.0 -I/u13/home/doug/ruby/ruby-1.8.0/ext/syck -DHAVE_ST_H -c |emitter.c |cc: Warning: emitter.c, line 174: In this statement, this argument to |sprintf co |ntains a bad conversion specification "%Y" that will cause |unpredictable behavio |r. (badconvspec) | sprintf( header, "--- %YAML:%d.%d ", SYCK_YAML_MAJOR, |SYCK_YAML_MINO |R ); Fixed. |6) |cc -ieee -g -oldc -std -I. -I/u13/home/doug/ruby/ruby-1.8.0 |-I/u13/home/doug/rub |y/ruby-1.8.0 -I/u13/home/doug/ruby/ruby-1.8.0/ext/tcltklib |-DHAVE_TCL_H -DHAVE_T |K_H -c stubs.c |cc: Warning: stubs.c, line 94: Source file does not contain any |declarations. (e |mptyfile) |#endif |------^ This is OK, just ignore. matz.