Project

General

Profile

Actions

Bug #887

closed

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

Added by znz (Kazuhiro NISHIYAMA) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
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

Actions #1

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

Also available in: Atom PDF

Like0
Like0