Bug #887: thread.c: warning: format '%.6ld' expects type 'long int'
http://redmine.ruby-lang.org/issues/show/887

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal

Mac OS Xの環境で以下のwarningが出ているので、tv_secだけではなくtv_usecもlongにキャストしてしまえば良いのではないでしょうか。

gcc -DRUBY_DEBUG_ENV -O2 -g -Wall -Wformat=2 -Wundef -Wno-parentheses -pipe -fno-common  -I. -I.ext/include/powerpc-darwin9.5.0 -I./include -I.  -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -o thread.o -c thread.c
thread.c: In function 'sleep_timeval':
thread.c:809: warning: format '%.6ld' expects type 'long int', but argument 3 has type '__darwin_suseconds_t'
thread.c:809: warning: format '%.6ld' expects type 'long int', but argument 5 has type '__darwin_suseconds_t'


----------------------------------------
http://redmine.ruby-lang.org