Project

General

Profile

Bug #887

thread.c: warning: format '%.6ld' expects type 'long int'

Added by znz (Kazuhiro NISHIYAMA) over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:37449]

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

History

#1

Updated by matz (Yukihiro Matsumoto) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20766.
=end

Also available in: Atom PDF