Browse Source

Cleanup: remove some warnings when compiled with -Wunused

C. Scott Ananian 11 years ago
parent
commit
49632054a4
2 changed files with 1 additions and 2 deletions
  1. 1 1
      php_v8js_macros.h
  2. 0 1
      v8js_methods.cc

+ 1 - 1
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 : "<string conversion failed>";
 }

+ 0 - 1
v8js_methods.cc

@@ -150,7 +150,6 @@ static void _php_v8js_dumper(v8::Local<v8::Value> 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++) {