From: Tanaka Akira Date: 2004-02-15T20:39:40+09:00 Subject: [ruby-dev:22891] Re: rb_glob(i) & constness In article <20040215161805.6541D650.ocean@m2.ccsnet.ne.jp>, "H.Yamamoto" writes: > 先ほど 1.9 に rb_glob(char*, ... => rb_glob(const char*, ... の変更をしたんですが、 コンパイルして気がついたのですが、 gcc -g -O2 -I. -I. -c dir.c dir.c: In function `push_braces': dir.c:1386: warning: passing arg 1 of `memcpy' discards qualifiers from pointer target type dir.c:1387: warning: passing arg 1 of `__strcpy_small' discards qualifiers from pointer target type dir.c:1387: warning: passing arg 1 of `memcpy' discards qualifiers from pointer target type dir.c:1387: warning: passing arg 1 of `strcpy' discards qualifiers from pointer target type という警告が出ます。 これは、こちらの環境 (gcc, glibc, linux) が悪いのか、ソースが悪いのか、 どっちなんでしょう? -- [田中 哲][たなか あきら][Tanaka Akira]