Bug #3593
closedcont.cで"PAGE_SIZE" redefined
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
Updated by naruse (Yui NARUSE) over 14 years ago
- Target version changed from 1.9.2 to 2.0.0
=begin
=end
Updated by naruse (Yui NARUSE) over 14 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