gauteh/ncursesw-ruby — pull request #1 by 5long (2013-05-01 07:57:16+00:00)
Title: -Wno-error=format-security

This patch ignores a warning when compiling to make it compile successfully on Ubuntu 13.04. I don't know much about C so I'll just write down all I've figured out so far for later reference:

* Ruby on Ubuntu 13.04 is compiled with gcc flags `-Wformat -Werror=format-security`. These flags catch some warnings and turn the warnings into errors.
* When generating Makefile for ncursesw-ruby, the above gcc flags are passed through for compiling the .so file
* At form_wrap.c line 1135, there's a function call to `rb_raise` using a variable as the second argument. This triggers a warning caught by above gcc flags.

Now back to Archlinux:

* Ruby is not compiled with the above gcc flags. So the compilation always succeeds
* To reproduce, add these flags to `$CFLAGS` in extconf.rb and reconfigure + recompile.

I know disabling warnings like this is pretty dirty. But currently I'm not confident enough to do large scale cleanup. And this does make the whole thing work on Ubuntu 13.04.