Is this an issue for a Ruby installation process (warning: assignment discards qualifiers from poin

Hi,

I’m on RedHat linux and installing Ruby but do get several warnings
(see below). Is this OK?

[root@home ruby-1.8.7-p72]# make
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c array.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c bignum.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c class.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c compar.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dir.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dln.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enum.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enumerator.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c error.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c eval.c
eval.c: In function rb_eval_string_wrap': eval.c:1731: warning: assignment discards qualifiers from pointer target type eval.c: In functionrb_eval_cmd’:
eval.c:1872: warning: assignment discards qualifiers from pointer target
type
eval.c: In function call_trace_func': eval.c:2723: warning: assignment discards qualifiers from pointer target type eval.c: In functionrb_raise_jump’:
eval.c:4752: warning: assignment discards qualifiers from pointer target
type
eval.c: In function method_missing': eval.c:5707: warning: assignment discards qualifiers from pointer target type eval.c: In functionrb_call0’:
eval.c:5870: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_f_eval': eval.c:6663: warning: assignment discards qualifiers from pointer target type eval.c: In functionexec_under’:
eval.c:6687: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_load': eval.c:7003: warning: assignment discards qualifiers from pointer target type eval.c: In functioncall_end_proc’:
eval.c:8016: warning: assignment discards qualifiers from pointer target
type
eval.c: In function rb_f_END': eval.c:8029: warning: assignment discards qualifiers from pointer target type eval.c: In functionmproc’:
eval.c:9805: warning: assignment discards qualifiers from pointer target
type
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c file.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c gc.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c hash.c
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c inits.c

Greg H. wrote:

gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dir.c
eval.c:2723: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_load’:
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c inits.c

It’s just a warning. Depending on the gcc options you use you get more
or fewer warnings. Don’t worry about it.

Greg H. wrote:

gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dir.c
eval.c:2723: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_load’:
gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c inits.c

It’s just a warning. Depending on the gcc options you use you get more
or fewer warnings. Don’t worry about it.