0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 15:11:53 +00:00

Cleanup: remove some warnings when compiled with -Wunused

This commit is contained in:
C. Scott Ananian 2013-10-21 15:40:29 -04:00
parent abadda147c
commit 49632054a4
2 changed files with 1 additions and 2 deletions

View File

@ -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>";
}

View File

@ -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++) {