diff --git a/php_v8js_macros.h b/php_v8js_macros.h index 4f689ce..647b7ca 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -81,7 +81,7 @@ extern "C" { #define V8JS_DEBUG_AUTO_BREAK_ALWAYS 2 /* Extracts a C string from a V8 Utf8Value. */ -static const char * ToCString(const v8::String::Utf8Value &value) /* {{{ */ +static inline const char * ToCString(const v8::String::Utf8Value &value) /* {{{ */ { return *value ? *value : ""; } diff --git a/v8js_methods.cc b/v8js_methods.cc index 761a40f..3e5ecb2 100644 --- a/v8js_methods.cc +++ b/v8js_methods.cc @@ -150,7 +150,6 @@ static void _php_v8js_dumper(v8::Local var, int level TSRMLS_DC) /* { /* global.var_dump - Dump JS values */ V8JS_METHOD(var_dump) /* {{{ */ { - int i; TSRMLS_FETCH(); for (int i = 0; i < info.Length(); i++) {