Bug #3593

cont.cで"PAGE_SIZE" redefined

Added by Yui NARUSE about 5 years ago. Updated about 4 years ago.

[ruby-dev:41870]
Status:Closed
Priority:Normal
Assignee:Koichi Sasada
ruby -v:ruby 1.9.3dev (2010-07-21 trunk 28703) [x86_64-freebsd8.1] Backport:

Description

=begin
cont.cで以下のようなwarningがでます。
ifndefを使うべきか、RB_PAGE_SIZEなどと別の名前を使うべきか迷ったので、対処お願いします。
../../ruby/cont.c:45:1: warning: "PAGE_SIZE" redefined
In file included from /usr/include/sys/param.h:110,
from /usr/include/pthread_np.h:34,
from ../../ruby/thread_pthread.h:16,
from ../../ruby/vm_core.h:29,
from ../../ruby/cont.c:13:
/usr/include/machine/param.h:100:1: warning: this is the location of the previous definition
../../ruby/cont.c:46:1: warning: "PAGE_MASK" redefined
/usr/include/machine/param.h:101:1: warning: this is the location of the previous definition
../../ruby/cont.c:45:1: warning: "PAGE_SIZE" redefined
In file included from /usr/include/sys/param.h:111,
from /usr/include/pthread_np.h:35,
from ../../ruby/thread_pthread.h:17,
from ../../ruby/vm_core.h:30,
from ../../ruby/cont.c:14:
/usr/include/machine/param.h:100:1: warning: this is the location of the previous definition
../../ruby/cont.c:46:1: warning: "PAGE_MASK" redefined
/usr/include/machine/param.h:101:1: warning: this is the location of the previous definition
../../ruby/cont.c: In function 'fiber_initialize_machine_stack_context':
../../ruby/cont.c:567: warning: assignment from incompatible pointer type
=end

History

#1 Updated by Yui NARUSE about 5 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

#2 Updated by Yui NARUSE about 5 years ago

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

=begin
This issue was solved with changeset r28768.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF