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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Greg H. (Guest)
on 2009-02-06 22:59
(Received via mailing list)
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 function `rb_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 function `rb_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 function `rb_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 function `exec_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 function `call_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 function `mproc':
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
Tim H. (Guest)
on 2009-02-07 00:38
(Received via mailing list)
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.
Tim H. (Guest)
on 2009-02-07 00:39
(Received via mailing list)
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.
This topic is locked and can not be replied to.