Actions
Bug #887
closedthread.c: warning: format '%.6ld' expects type 'long int'
Description
=begin
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'
=end
Updated by matz (Yukihiro Matsumoto) over 15 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r20766.
=end
Actions
Like0
Like0