From: Shugo Maeda Date: 2000-07-11T13:58:14+09:00 Subject: [ruby-talk:03922] Re: mod_ruby Hi, At Mon, 10 Jul 2000 20:43:21 -0700, Steve Shreeve wrote: > mod_ruby.c:690: warning: passing arg 2 of `write_client_block' discards > `volatile' from pointer target type Sorry, this `volatile' is a test code, and now fixed in the latest cvs version. > BUT, the *interesting* news is that when I ran this, I did *NOT* get any > errors. Somehow the change from -O2 to -O0 fixed removed some problem that > existed before... How can I find out more about solving this problem? OK, please tell me your gcc version. And can I see the assembly code? $ gcc -fPIC -I/usr/local/lib/ruby/1.4/i686-linux \ -I/usr/local/apache/include \ -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI \ -Dbool=char -DHAS_BOOL \ -I/usr/local/include \ -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite \ -g -O2 -c mod_ruby.c -S -o mod_ruby.o2.s $ gcc -fPIC -I/usr/local/lib/ruby/1.4/i686-linux \ -I/usr/local/apache/include \ -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI \ -Dbool=char -DHAS_BOOL \ -I/usr/local/include \ -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite \ -g -O0 -c mod_ruby.c -S -o mod_ruby.o0.s # mod_ruby.o2.s and mod_ruby.o0.s is the assembly code. Shugo