jruby/jruby — pull request #121 by dekellum (2012-02-04 23:30:00+00:00)
Title: cext will only compile if warnings are lenient.

I don't understand the cext code itself well enough to fix this warning directly, but compiling without -Werror allows the build to succeed and everything appears to work correctly.

Otherwise:

~~~
[exec] /home/david/src/jruby/cext/src/thread.cpp: In function ‘int rb_thread_select(int, fd_set*, fd_set*, fd_set*, timeval*)’:
[exec] /home/david/src/jruby/cext/src/thread.cpp:92:26: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
[exec] cc1plus: all warnings being treated as errors
[exec]
[exec] make[1]: *** [/home/david/src/jruby/cext/src/../..//build/thread.o] Error 1
[exec] make[1]: Leaving directory `/home/david/src/jruby/cext/src'
[exec] make: *** [all] Error 2
~~~

On:

Fedora 16 (x64)
gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)