1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

Add -Wall to compile. Fix one (and only) warning

This commit is contained in:
Bill Robertson 2010-01-10 22:14:29 -05:00 committed by Charles Lowell
parent c1d45d0aed
commit 15c06a702f
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,8 @@ require 'mkmf'
dir_config('v8')
have_library('v8') or raise "unable to find libv8"
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
create_makefile('v8')
# now add a few extra targets

View file

@ -20,7 +20,6 @@ bool is_function(VALUE& object) {
* Debugging aid
*/
VALUE v8_what_is_this(VALUE self, VALUE object) {
VALUE boolean;
switch (TYPE(object)) {
case T_NIL:
printf("nil\n");