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')
|
dir_config('v8')
|
||||||
have_library('v8') or raise "unable to find libv8"
|
have_library('v8') or raise "unable to find libv8"
|
||||||
|
|
||||||
|
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
||||||
|
|
||||||
create_makefile('v8')
|
create_makefile('v8')
|
||||||
|
|
||||||
# now add a few extra targets
|
# now add a few extra targets
|
||||||
|
|
|
@ -20,7 +20,6 @@ bool is_function(VALUE& object) {
|
||||||
* Debugging aid
|
* Debugging aid
|
||||||
*/
|
*/
|
||||||
VALUE v8_what_is_this(VALUE self, VALUE object) {
|
VALUE v8_what_is_this(VALUE self, VALUE object) {
|
||||||
VALUE boolean;
|
|
||||||
switch (TYPE(object)) {
|
switch (TYPE(object)) {
|
||||||
case T_NIL:
|
case T_NIL:
|
||||||
printf("nil\n");
|
printf("nil\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue