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:
parent
c1d45d0aed
commit
15c06a702f
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue