mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 16:51:52 +00:00
Cleanup: remove some warnings when compiled with -Wunused
This commit is contained in:
parent
abadda147c
commit
49632054a4
@ -81,7 +81,7 @@ extern "C" {
|
|||||||
#define V8JS_DEBUG_AUTO_BREAK_ALWAYS 2
|
#define V8JS_DEBUG_AUTO_BREAK_ALWAYS 2
|
||||||
|
|
||||||
/* Extracts a C string from a V8 Utf8Value. */
|
/* 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>";
|
return *value ? *value : "<string conversion failed>";
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,6 @@ static void _php_v8js_dumper(v8::Local<v8::Value> var, int level TSRMLS_DC) /* {
|
|||||||
/* global.var_dump - Dump JS values */
|
/* global.var_dump - Dump JS values */
|
||||||
V8JS_METHOD(var_dump) /* {{{ */
|
V8JS_METHOD(var_dump) /* {{{ */
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
TSRMLS_FETCH();
|
TSRMLS_FETCH();
|
||||||
|
|
||||||
for (int i = 0; i < info.Length(); i++) {
|
for (int i = 0; i < info.Length(); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user