SVN commit 536009 by rich: Fix a couple of warnings and another buffer issue M +6 -2 value_binding.cpp --- trunk/KDE/kdelibs/kjsembed/kjsembed/value_binding.cpp #536008:536009 @@ -52,6 +52,8 @@ KJS::JSValue *callName( KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args ) { + Q_UNUSED( args ); + KJSEmbed::ValueBinding *imp = KJSEmbed::extractBindingImp(exec, self ); if( imp ) { @@ -77,6 +79,8 @@ KJS::JSValue *callToString( KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args ) { + Q_UNUSED( args ); + KJSEmbed::ValueBinding *imp = KJSEmbed::extractBindingImp(exec, self ); if( imp ) { @@ -105,10 +109,10 @@ if ( obj->className().qstring() == "Array" ) { KJS::JSValue *len = obj->get(exec, KJS::Identifier("length")); - char buff[4]; + char buff[21]; if( !obj->hasProperty(exec, KJS::Identifier("length")) ) return Map; - else if( !obj->hasProperty(exec, KJS::Identifier( itoa((len->toNumber(exec) - 1), buff, 10 ) ) ) ) + else if( !obj->hasProperty(exec, KJS::Identifier( itoa(int(len->toNumber(exec) - 1), buff, 10 ) ) ) ) return Map; else return List;