tanoku/rinku — Issue #8: Compile error on ruby-1.9.3
Author: svoop
Created: 2011-11-02 14:38:45+00:00
State: open

While rinku compiles fine on 1.9.2, I get the following error on 1.9.3:

```ERROR: Error installing rinku:
ERROR: Failed to build gem native extension.

/Users/sschwyn/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
creating Makefile

make
compiling autolink.c
compiling buffer.c
buffer.c:309:29: warning: operands of ? are integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
size_t new_size = (n > 0) ? n : buf->size;
^ ~ ~~~~~~~~~
1 warning generated.
compiling rinku.c
rinku.c:124:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
return i;
~~~~~~ ^
rinku.c:165:3: error: non-void function 'rinku_autolink' should return a value [-Wreturn-type]
return;
^
1 warning and 1 error generated.
make: *** [rinku.o] Error 1
```