Commit 05585423 authored by mjs's avatar mjs

Reviewed by Darin.

        
        - Turn off -Wno-unused-param for JavaScriptCore and get rid of unused params
        http://bugzilla.opendarwin.org/show_bug.cgi?id=7384

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * bindings/NP_jsobject.cpp:
        (jsAllocate):
        (_NPN_InvokeDefault):
        (_NPN_Evaluate):
        (_NPN_GetProperty):
        (_NPN_SetProperty):
        (_NPN_RemoveProperty):
        (_NPN_HasProperty):
        (_NPN_HasMethod):
        * bindings/c/c_class.h:
        (KJS::Bindings::CClass::constructorAt):
        * bindings/c/c_utility.cpp:
        (KJS::Bindings::convertNPVariantToValue):
        * bindings/jni/jni_class.cpp:
        (JavaClass::methodsNamed):
        (JavaClass::fieldNamed):
        * bindings/jni/jni_instance.cpp:
        (JavaInstance::invokeDefaultMethod):
        * bindings/jni/jni_jsobject.cpp:
        * bindings/jni/jni_objc.mm:
        (-[NSObject KJS::Bindings::]):
        * bindings/objc/WebScriptObject.mm:
        (+[WebUndefined allocWithZone:]):
        (-[WebUndefined initWithCoder:]):
        (-[WebUndefined encodeWithCoder:]):
        (-[WebUndefined copyWithZone:]):
        * bindings/objc/objc_class.h:
        (KJS::Bindings::ObjcClass::constructorAt):
        * bindings/objc/objc_class.mm:
        (KJS::Bindings::ObjcClass::methodsNamed):
        (KJS::Bindings::ObjcClass::fallbackObject):
        * bindings/objc/objc_instance.mm:
        (ObjcInstance::getValueOfUndefinedField):
        * bindings/objc/objc_runtime.mm:
        (ObjcFallbackObjectImp::getOwnPropertySlot):
        (ObjcFallbackObjectImp::put):
        (ObjcFallbackObjectImp::canPut):
        (ObjcFallbackObjectImp::deleteProperty):
        (ObjcFallbackObjectImp::toBoolean):
        * bindings/runtime.cpp:
        (KJS::Bindings::Instance::createLanguageInstanceForValue):
        * bindings/runtime.h:
        (KJS::Bindings::Instance::getValueOfUndefinedField):
        (KJS::Bindings::Instance::setValueOfUndefinedField):
        * bindings/runtime_array.cpp:
        (RuntimeArray::lengthGetter):
        (RuntimeArray::indexGetter):
        (RuntimeArray::put):
        (RuntimeArray::deleteProperty):
        * bindings/runtime_method.cpp:
        (RuntimeMethod::lengthGetter):
        (RuntimeMethod::execute):
        * bindings/runtime_object.cpp:
        (RuntimeObjectImp::fallbackObjectGetter):
        (RuntimeObjectImp::fieldGetter):
        (RuntimeObjectImp::methodGetter):
        (RuntimeObjectImp::put):
        (RuntimeObjectImp::canPut):
        (RuntimeObjectImp::deleteProperty):
        (RuntimeObjectImp::defaultValue):
        (RuntimeObjectImp::callAsFunction):
        * bindings/runtime_root.cpp:
        (performJavaScriptAccess):
        * kjs/array_object.cpp:
        (ArrayInstance::lengthGetter):
        (ArrayInstance::getOwnPropertySlot):
        (ArrayPrototype::ArrayPrototype):
        (ArrayPrototype::getOwnPropertySlot):
        * kjs/bool_object.cpp:
        (BooleanObjectImp::BooleanObjectImp):
        * kjs/date_object.cpp:
        (KJS::DateObjectFuncImp::DateObjectFuncImp):
        (KJS::DateObjectFuncImp::callAsFunction):
        * kjs/error_object.cpp:
        (ErrorObjectImp::ErrorObjectImp):
        (NativeErrorPrototype::NativeErrorPrototype):
        (NativeErrorImp::NativeErrorImp):
        * kjs/function.cpp:
        (KJS::FunctionImp::argumentsGetter):
        (KJS::FunctionImp::lengthGetter):
        (KJS::Arguments::mappedIndexGetter):
        (KJS::ActivationImp::argumentsGetter):
        (KJS::ActivationImp::put):
        * kjs/function_object.cpp:
        (FunctionObjectImp::FunctionObjectImp):
        * kjs/internal.cpp:
        (KJS::GetterSetterImp::toPrimitive):
        (KJS::GetterSetterImp::toBoolean):
        * kjs/interpreter.cpp:
        (KJS::Interpreter::evaluate):
        * kjs/interpreter.h:
        (KJS::Interpreter::isGlobalObject):
        (KJS::Interpreter::interpreterForGlobalObject):
        (KJS::Interpreter::isSafeScript):
        * kjs/lexer.cpp:
        (Lexer::makeIdentifier):
        (Lexer::makeUString):
        * kjs/lookup.h:
        (KJS::staticFunctionGetter):
        (KJS::staticValueGetter):
        * kjs/nodes.cpp:
        (StatementNode::processFuncDecl):
        (PropertyNode::evaluate):
        (PropertyNameNode::evaluate):
        * kjs/number_object.cpp:
        (NumberObjectImp::NumberObjectImp):
        (NumberObjectImp::getOwnPropertySlot):
        * kjs/object.cpp:
        (KJS::JSObject::defineGetter):
        (KJS::JSObject::defineSetter):
        (KJS::JSObject::hasInstance):
        (KJS::JSObject::propertyIsEnumerable):
        * kjs/object_object.cpp:
        (ObjectObjectImp::ObjectObjectImp):
        * kjs/property_slot.cpp:
        (KJS::PropertySlot::undefinedGetter):
        (KJS::PropertySlot::functionGetter):
        * kjs/reference.cpp:
        (KJS::Reference::getPropertyName):
        * kjs/reference_list.cpp:
        (ReferenceListIterator::operator++):
        * kjs/regexp_object.cpp:
        (RegExpObjectImp::RegExpObjectImp):
        (RegExpObjectImp::getValueProperty):
        (RegExpObjectImp::putValueProperty):
        * kjs/string_object.cpp:
        (StringInstance::lengthGetter):
        (StringInstance::indexGetter):
        (StringPrototype::StringPrototype):
        * kxmlcore/Assertions.mm:
        * kxmlcore/FastMalloc.cpp:
        (KXMLCore::TCMalloc_PageHeap::CheckList):
        * kxmlcore/HashTable.h:
        (KXMLCore::HashTableConstIterator::checkValidity):
        (KXMLCore::IdentityHashTranslator::translate):
        * pcre/pcre_get.c:
        (pcre_get_stringnumber):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7991caa2
2006-02-21 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
- Turn off -Wno-unused-param for JavaScriptCore and get rid of unused params
http://bugzilla.opendarwin.org/show_bug.cgi?id=7384
* JavaScriptCore.xcodeproj/project.pbxproj:
* bindings/NP_jsobject.cpp:
(jsAllocate):
(_NPN_InvokeDefault):
(_NPN_Evaluate):
(_NPN_GetProperty):
(_NPN_SetProperty):
(_NPN_RemoveProperty):
(_NPN_HasProperty):
(_NPN_HasMethod):
* bindings/c/c_class.h:
(KJS::Bindings::CClass::constructorAt):
* bindings/c/c_utility.cpp:
(KJS::Bindings::convertNPVariantToValue):
* bindings/jni/jni_class.cpp:
(JavaClass::methodsNamed):
(JavaClass::fieldNamed):
* bindings/jni/jni_instance.cpp:
(JavaInstance::invokeDefaultMethod):
* bindings/jni/jni_jsobject.cpp:
* bindings/jni/jni_objc.mm:
(-[NSObject KJS::Bindings::]):
* bindings/objc/WebScriptObject.mm:
(+[WebUndefined allocWithZone:]):
(-[WebUndefined initWithCoder:]):
(-[WebUndefined encodeWithCoder:]):
(-[WebUndefined copyWithZone:]):
* bindings/objc/objc_class.h:
(KJS::Bindings::ObjcClass::constructorAt):
* bindings/objc/objc_class.mm:
(KJS::Bindings::ObjcClass::methodsNamed):
(KJS::Bindings::ObjcClass::fallbackObject):
* bindings/objc/objc_instance.mm:
(ObjcInstance::getValueOfUndefinedField):
* bindings/objc/objc_runtime.mm:
(ObjcFallbackObjectImp::getOwnPropertySlot):
(ObjcFallbackObjectImp::put):
(ObjcFallbackObjectImp::canPut):
(ObjcFallbackObjectImp::deleteProperty):
(ObjcFallbackObjectImp::toBoolean):
* bindings/runtime.cpp:
(KJS::Bindings::Instance::createLanguageInstanceForValue):
* bindings/runtime.h:
(KJS::Bindings::Instance::getValueOfUndefinedField):
(KJS::Bindings::Instance::setValueOfUndefinedField):
* bindings/runtime_array.cpp:
(RuntimeArray::lengthGetter):
(RuntimeArray::indexGetter):
(RuntimeArray::put):
(RuntimeArray::deleteProperty):
* bindings/runtime_method.cpp:
(RuntimeMethod::lengthGetter):
(RuntimeMethod::execute):
* bindings/runtime_object.cpp:
(RuntimeObjectImp::fallbackObjectGetter):
(RuntimeObjectImp::fieldGetter):
(RuntimeObjectImp::methodGetter):
(RuntimeObjectImp::put):
(RuntimeObjectImp::canPut):
(RuntimeObjectImp::deleteProperty):
(RuntimeObjectImp::defaultValue):
(RuntimeObjectImp::callAsFunction):
* bindings/runtime_root.cpp:
(performJavaScriptAccess):
* kjs/array_object.cpp:
(ArrayInstance::lengthGetter):
(ArrayInstance::getOwnPropertySlot):
(ArrayPrototype::ArrayPrototype):
(ArrayPrototype::getOwnPropertySlot):
* kjs/bool_object.cpp:
(BooleanObjectImp::BooleanObjectImp):
* kjs/date_object.cpp:
(KJS::DateObjectFuncImp::DateObjectFuncImp):
(KJS::DateObjectFuncImp::callAsFunction):
* kjs/error_object.cpp:
(ErrorObjectImp::ErrorObjectImp):
(NativeErrorPrototype::NativeErrorPrototype):
(NativeErrorImp::NativeErrorImp):
* kjs/function.cpp:
(KJS::FunctionImp::argumentsGetter):
(KJS::FunctionImp::lengthGetter):
(KJS::Arguments::mappedIndexGetter):
(KJS::ActivationImp::argumentsGetter):
(KJS::ActivationImp::put):
* kjs/function_object.cpp:
(FunctionObjectImp::FunctionObjectImp):
* kjs/internal.cpp:
(KJS::GetterSetterImp::toPrimitive):
(KJS::GetterSetterImp::toBoolean):
* kjs/interpreter.cpp:
(KJS::Interpreter::evaluate):
* kjs/interpreter.h:
(KJS::Interpreter::isGlobalObject):
(KJS::Interpreter::interpreterForGlobalObject):
(KJS::Interpreter::isSafeScript):
* kjs/lexer.cpp:
(Lexer::makeIdentifier):
(Lexer::makeUString):
* kjs/lookup.h:
(KJS::staticFunctionGetter):
(KJS::staticValueGetter):
* kjs/nodes.cpp:
(StatementNode::processFuncDecl):
(PropertyNode::evaluate):
(PropertyNameNode::evaluate):
* kjs/number_object.cpp:
(NumberObjectImp::NumberObjectImp):
(NumberObjectImp::getOwnPropertySlot):
* kjs/object.cpp:
(KJS::JSObject::defineGetter):
(KJS::JSObject::defineSetter):
(KJS::JSObject::hasInstance):
(KJS::JSObject::propertyIsEnumerable):
* kjs/object_object.cpp:
(ObjectObjectImp::ObjectObjectImp):
* kjs/property_slot.cpp:
(KJS::PropertySlot::undefinedGetter):
(KJS::PropertySlot::functionGetter):
* kjs/reference.cpp:
(KJS::Reference::getPropertyName):
* kjs/reference_list.cpp:
(ReferenceListIterator::operator++):
* kjs/regexp_object.cpp:
(RegExpObjectImp::RegExpObjectImp):
(RegExpObjectImp::getValueProperty):
(RegExpObjectImp::putValueProperty):
* kjs/string_object.cpp:
(StringInstance::lengthGetter):
(StringInstance::indexGetter):
(StringPrototype::StringPrototype):
* kxmlcore/Assertions.mm:
* kxmlcore/FastMalloc.cpp:
(KXMLCore::TCMalloc_PageHeap::CheckList):
* kxmlcore/HashTable.h:
(KXMLCore::HashTableConstIterator::checkValidity):
(KXMLCore::IdentityHashTranslator::translate):
* pcre/pcre_get.c:
(pcre_get_stringnumber):
2006-02-23 Darin Adler <darin@apple.com>
- try to fix buildbot failure
......
......@@ -1320,6 +1320,18 @@
);
PRODUCT_NAME = JavaScriptCore;
STYLE_LDFLAGS = "";
WARNING_CFLAGS = (
"-Wall",
"-W",
"-Wcast-align",
"-Wchar-subscripts",
"-Wformat-security",
"-Wmissing-format-attribute",
"-Wpointer-arith",
"-Wwrite-strings",
"-Wno-format-y2k",
"-Wno-long-double",
);
};
name = Debug;
};
......@@ -1344,6 +1356,18 @@
);
PRODUCT_NAME = JavaScriptCore;
STYLE_LDFLAGS = "";
WARNING_CFLAGS = (
"-Wall",
"-W",
"-Wcast-align",
"-Wchar-subscripts",
"-Wformat-security",
"-Wmissing-format-attribute",
"-Wpointer-arith",
"-Wwrite-strings",
"-Wno-format-y2k",
"-Wno-long-double",
);
};
name = Release;
};
......@@ -1374,6 +1398,18 @@
"$(APPLE_INTERNAL_DIR)/OrderFiles/JavaScriptCore.order",
);
STYLE_LDFLAGS = "-umbrella WebKit -allowable_client JavaScriptGlue";
WARNING_CFLAGS = (
"-Wall",
"-W",
"-Wcast-align",
"-Wchar-subscripts",
"-Wformat-security",
"-Wmissing-format-attribute",
"-Wpointer-arith",
"-Wwrite-strings",
"-Wno-format-y2k",
"-Wno-long-double",
);
};
name = Production;
};
......
......@@ -48,9 +48,9 @@ static KJS::List listFromVariantArgs(KJS::ExecState *exec, const NPVariant *args
return aList;
}
static NPObject *jsAllocate(NPP npp, NPClass *aClass)
static NPObject* jsAllocate(NPP, NPClass*)
{
return (NPObject *)malloc(sizeof(JavaScriptObject));
return (NPObject*)malloc(sizeof(JavaScriptObject));
}
static void jsDeallocate (JavaScriptObject *obj)
......@@ -130,7 +130,7 @@ NPObject *_NPN_CreateNoScriptObject(void)
return _NPN_CreateObject(0, NPNoScriptObjectClass);
}
bool _NPN_InvokeDefault (NPP npp, NPObject *o, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool _NPN_InvokeDefault (NPP, NPObject* o, const NPVariant* args, uint32_t argCount, NPVariant* result)
{
if (o->_class == NPScriptObjectClass) {
// No notion of a default function on JS objects. Just return false, can't handle.
......@@ -198,22 +198,22 @@ bool _NPN_Invoke (NPP npp, NPObject *o, NPIdentifier methodName, const NPVariant
return true;
}
bool _NPN_Evaluate (NPP npp, NPObject *o, NPString *s, NPVariant *variant)
bool _NPN_Evaluate(NPP, NPObject* o, NPString* s, NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
JavaScriptObject* obj = (JavaScriptObject*)o;
if (!_isSafeScript(obj))
return false;
ExecState *exec = obj->executionContext->interpreter()->globalExec();
JSValue *result;
ExecState* exec = obj->executionContext->interpreter()->globalExec();
JSValue* result;
JSLock lock;
NPUTF16 *scriptString;
NPUTF16* scriptString;
unsigned int UTF16Length;
convertNPStringToUTF16 (s, &scriptString, &UTF16Length); // requires free() of returned memory.
Completion completion = obj->executionContext->interpreter()->evaluate(UString(), 0, UString((const UChar *)scriptString,UTF16Length));
Completion completion = obj->executionContext->interpreter()->evaluate(UString(), 0, UString((const UChar*)scriptString,UTF16Length));
ComplType type = completion.complType();
if (type == Normal) {
......@@ -236,7 +236,7 @@ bool _NPN_Evaluate (NPP npp, NPObject *o, NPString *s, NPVariant *variant)
return false;
}
bool _NPN_GetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, NPVariant *variant)
bool _NPN_GetProperty (NPP, NPObject* o, NPIdentifier propertyName, NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
......@@ -283,7 +283,7 @@ bool _NPN_GetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, NPVarian
return false;
}
bool _NPN_SetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, const NPVariant *variant)
bool _NPN_SetProperty (NPP, NPObject* o, NPIdentifier propertyName, const NPVariant* variant)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
......@@ -306,7 +306,7 @@ bool _NPN_SetProperty (NPP npp, NPObject *o, NPIdentifier propertyName, const NP
return false;
}
bool _NPN_RemoveProperty (NPP npp, NPObject *o, NPIdentifier propertyName)
bool _NPN_RemoveProperty (NPP, NPObject* o, NPIdentifier propertyName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
......@@ -339,7 +339,7 @@ bool _NPN_RemoveProperty (NPP npp, NPObject *o, NPIdentifier propertyName)
return false;
}
bool _NPN_HasProperty(NPP npp, NPObject *o, NPIdentifier propertyName)
bool _NPN_HasProperty(NPP, NPObject* o, NPIdentifier propertyName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
......@@ -362,7 +362,7 @@ bool _NPN_HasProperty(NPP npp, NPObject *o, NPIdentifier propertyName)
return false;
}
bool _NPN_HasMethod(NPP npp, NPObject *o, NPIdentifier methodName)
bool _NPN_HasMethod(NPP, NPObject* o, NPIdentifier methodName)
{
if (o->_class == NPScriptObjectClass) {
JavaScriptObject *obj = (JavaScriptObject *)o;
......
......@@ -53,7 +53,7 @@ public:
virtual Field *fieldNamed(const char *name, Instance *instance) const;
virtual Constructor *constructorAt(int i) const {
virtual Constructor *constructorAt(int) const {
return 0;
};
......
......@@ -136,7 +136,7 @@ void convertValueToNPVariant(ExecState *exec, JSValue *value, NPVariant *result)
NPN_InitializeVariantAsUndefined(result);
}
JSValue *convertNPVariantToValue(ExecState *exec, const NPVariant *variant)
JSValue *convertNPVariantToValue(ExecState*, const NPVariant*variant)
{
NPVariantType type = variant->type;
......
......@@ -96,7 +96,7 @@ JavaClass::~JavaClass () {
delete [] _constructors;
}
MethodList JavaClass::methodsNamed(const char *name, Instance *instance) const
MethodList JavaClass::methodsNamed(const char *name, Instance*) const
{
CFStringRef methodName = CFStringCreateWithCString(NULL, name, kCFStringEncodingASCII);
MethodList *methodList = (MethodList *)CFDictionaryGetValue(_methods, methodName);
......@@ -106,7 +106,7 @@ MethodList JavaClass::methodsNamed(const char *name, Instance *instance) const
return MethodList();
}
Field *JavaClass::fieldNamed(const char *name, Instance *instance) const
Field *JavaClass::fieldNamed(const char *name, Instance*) const
{
CFStringRef fieldName = CFStringCreateWithCString(NULL, name, kCFStringEncodingASCII);
Field *aField = (Field *)CFDictionaryGetValue(_fields, fieldName);
......
......@@ -294,7 +294,7 @@ JSValue *JavaInstance::invokeMethod (ExecState *exec, const MethodList &methodLi
return resultValue;
}
JSValue *JavaInstance::invokeDefaultMethod (ExecState *exec, const List &args)
JSValue *JavaInstance::invokeDefaultMethod (ExecState*, const List&)
{
return jsUndefined();
}
......
......@@ -450,7 +450,7 @@ List JavaJSObject::listFromJArray(jobjectArray jArray) const
extern "C" {
jlong KJS_JSCreateNativeJSObject (JNIEnv *env, jclass clazz, jstring jurl, jlong nativeHandle, jboolean ctx)
jlong KJS_JSCreateNativeJSObject (JNIEnv*, jclass, jstring, jlong nativeHandle, jboolean)
{
JSObjectCallContext context;
context.type = CreateNative;
......@@ -458,7 +458,7 @@ jlong KJS_JSCreateNativeJSObject (JNIEnv *env, jclass clazz, jstring jurl, jlong
return JavaJSObject::invoke (&context).j;
}
void KJS_JSObject_JSFinalize (JNIEnv *env, jclass jsClass, jlong nativeHandle)
void KJS_JSObject_JSFinalize (JNIEnv*, jclass, jlong nativeHandle)
{
JSObjectCallContext context;
context.type = Finalize;
......@@ -466,7 +466,7 @@ void KJS_JSObject_JSFinalize (JNIEnv *env, jclass jsClass, jlong nativeHandle)
JavaJSObject::invoke (&context);
}
jobject KJS_JSObject_JSObjectCall (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring methodName, jobjectArray args, jboolean ctx)
jobject KJS_JSObject_JSObjectCall (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring methodName, jobjectArray args, jboolean)
{
JSObjectCallContext context;
context.type = Call;
......@@ -476,7 +476,7 @@ jobject KJS_JSObject_JSObjectCall (JNIEnv *env, jclass jsClass, jlong nativeHand
return JavaJSObject::invoke (&context).l;
}
jobject KJS_JSObject_JSObjectEval (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jscript, jboolean ctx)
jobject KJS_JSObject_JSObjectEval (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jscript, jboolean)
{
JSObjectCallContext context;
context.type = Eval;
......@@ -485,7 +485,7 @@ jobject KJS_JSObject_JSObjectEval (JNIEnv *env, jclass jsClass, jlong nativeHand
return JavaJSObject::invoke (&context).l;
}
jobject KJS_JSObject_JSObjectGetMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jboolean ctx)
jobject KJS_JSObject_JSObjectGetMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jboolean)
{
JSObjectCallContext context;
context.type = GetMember;
......@@ -494,7 +494,7 @@ jobject KJS_JSObject_JSObjectGetMember (JNIEnv *env, jclass jsClass, jlong nativ
return JavaJSObject::invoke (&context).l;
}
void KJS_JSObject_JSObjectSetMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jobject value, jboolean ctx)
void KJS_JSObject_JSObjectSetMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jobject value, jboolean)
{
JSObjectCallContext context;
context.type = SetMember;
......@@ -504,7 +504,7 @@ void KJS_JSObject_JSObjectSetMember (JNIEnv *env, jclass jsClass, jlong nativeHa
JavaJSObject::invoke (&context);
}
void KJS_JSObject_JSObjectRemoveMember (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jstring jname, jboolean ctx)
void KJS_JSObject_JSObjectRemoveMember (JNIEnv*, jclass, jlong nativeHandle, jstring, jstring jname, jboolean)
{
JSObjectCallContext context;
context.type = RemoveMember;
......@@ -513,7 +513,7 @@ void KJS_JSObject_JSObjectRemoveMember (JNIEnv *env, jclass jsClass, jlong nativ
JavaJSObject::invoke (&context);
}
jobject KJS_JSObject_JSObjectGetSlot (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jint jindex, jboolean ctx)
jobject KJS_JSObject_JSObjectGetSlot (JNIEnv*, jclass, jlong nativeHandle, jstring, jint jindex, jboolean)
{
JSObjectCallContext context;
context.type = GetSlot;
......@@ -522,7 +522,7 @@ jobject KJS_JSObject_JSObjectGetSlot (JNIEnv *env, jclass jsClass, jlong nativeH
return JavaJSObject::invoke (&context).l;
}
void KJS_JSObject_JSObjectSetSlot (JNIEnv *env, jclass jsClass, jlong nativeHandle, jstring jurl, jint jindex, jobject value, jboolean ctx)
void KJS_JSObject_JSObjectSetSlot (JNIEnv*, jclass, jlong nativeHandle, jstring, jint jindex, jobject value, jboolean)
{
JSObjectCallContext context;
context.type = SetSlot;
......@@ -532,7 +532,7 @@ void KJS_JSObject_JSObjectSetSlot (JNIEnv *env, jclass jsClass, jlong nativeHand
JavaJSObject::invoke (&context);
}
jstring KJS_JSObject_JSObjectToString (JNIEnv *env, jclass clazz, jlong nativeHandle)
jstring KJS_JSObject_JSObjectToString (JNIEnv*, jclass, jlong nativeHandle)
{
JSObjectCallContext context;
context.type = ToString;
......
......@@ -44,7 +44,7 @@ using namespace KJS::Bindings;
- (NSURL *)_webViewURL;
@end
bool KJS::Bindings::dispatchJNICall (const void *targetAppletView, jobject obj, bool isStatic, JNIType returnType, jmethodID methodID, jvalue *args, jvalue &result, const char *callingURL, JSValue *&exceptionDescription)
bool KJS::Bindings::dispatchJNICall (const void *targetAppletView, jobject obj, bool isStatic, JNIType returnType, jmethodID methodID, jvalue *args, jvalue &result, const char*, JSValue *&exceptionDescription)
{
id view = (id)targetAppletView;
......
......@@ -36,6 +36,8 @@
#import "runtime_object.h"
#import "runtime_root.h"
#import <kxmlcore/UnusedParam.h>
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
@interface NSObject (WebExtras)
......@@ -440,6 +442,7 @@ static List listFromNSArray(ExecState *exec, NSArray *array)
+ (id)allocWithZone:(NSZone *)zone
{
UNUSED_PARAM(zone);
static WebUndefined *sharedUndefined = 0;
if (!sharedUndefined)
sharedUndefined = [super allocWithZone:NULL];
......@@ -448,15 +451,18 @@ static List listFromNSArray(ExecState *exec, NSArray *array)
- (id)initWithCoder:(NSCoder *)coder
{
UNUSED_PARAM(coder);
return self;
}
- (void)encodeWithCoder:(NSCoder *)encoder
{
UNUSED_PARAM(encoder);
}
- (id)copyWithZone:(NSZone *)zone
{
UNUSED_PARAM(zone);
return self;
}
......
......@@ -51,7 +51,7 @@ public:
virtual JSValue *fallbackObject(ExecState *exec, Instance *instance, const Identifier &propertyName);
virtual Constructor *constructorAt(int i) const { return 0; }
virtual Constructor *constructorAt(int) const { return 0; }
virtual int numConstructors() const { return 0; }
ClassStructPtr isa() { return _isa; }
......
......@@ -72,7 +72,7 @@ const char *ObjcClass::name() const
return _isa->name;
}
MethodList ObjcClass::methodsNamed(const char *JSName, Instance *instance) const
MethodList ObjcClass::methodsNamed(const char *JSName, Instance*) const
{
MethodList methodList;
char fixedSizeBuffer[1024];
......@@ -223,7 +223,7 @@ Field *ObjcClass::fieldNamed(const char *name, Instance *instance) const
return aField;
}
JSValue *ObjcClass::fallbackObject (ExecState *exec, Instance *instance, const Identifier &propertyName)
JSValue *ObjcClass::fallbackObject (ExecState*, Instance *instance, const Identifier &propertyName)
{
ObjcInstance * objcInstance = static_cast<ObjcInstance*>(instance);
id targetObject = objcInstance->getObject();
......
......@@ -332,7 +332,7 @@ JSValue *ObjcInstance::getValueOfField (ExecState *exec, const Field *aField) co
return aField->valueFromInstance (exec, this);
}
JSValue *ObjcInstance::getValueOfUndefinedField (ExecState *exec, const Identifier &property, JSType hint) const
JSValue *ObjcInstance::getValueOfUndefinedField (ExecState* exec, const Identifier& property, JSType) const
{
id targetObject = getObject();
......
......@@ -242,19 +242,18 @@ ObjcFallbackObjectImp::ObjcFallbackObjectImp(ObjcInstance *i, const KJS::Identif
{
}
bool ObjcFallbackObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
bool ObjcFallbackObjectImp::getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot& slot)
{
// keep the prototype from getting called instead of just returning false
slot.setUndefined(this);
return true;
}
void ObjcFallbackObjectImp::put(ExecState *exec, const Identifier &propertyName,
JSValue *value, int attr)
void ObjcFallbackObjectImp::put(ExecState*, const Identifier&, JSValue*, int)
{
}
bool ObjcFallbackObjectImp::canPut(ExecState *exec, const Identifier &propertyName) const
bool ObjcFallbackObjectImp::canPut(ExecState*, const Identifier&) const
{
return false;
}
......@@ -309,8 +308,7 @@ JSValue *ObjcFallbackObjectImp::callAsFunction(ExecState *exec, JSObject *thisOb
return result;
}
bool ObjcFallbackObjectImp::deleteProperty(ExecState *exec,
const Identifier &propertyName)
bool ObjcFallbackObjectImp::deleteProperty(ExecState*, const Identifier&)
{
return false;
}
......@@ -320,7 +318,7 @@ JSValue *ObjcFallbackObjectImp::defaultValue(ExecState *exec, JSType hint) const
return _instance->getValueOfUndefinedField(exec, _item, hint);
}
bool ObjcFallbackObjectImp::toBoolean(ExecState *exec) const
bool ObjcFallbackObjectImp::toBoolean(ExecState*) const
{
id targetObject = _instance->getObject();
......
......@@ -163,7 +163,7 @@ JSObject *Instance::createRuntimeObject(BindingLanguage language, void *nativeIn
return new RuntimeObjectImp(interfaceObject);
}
void *Instance::createLanguageInstanceForValue(ExecState *exec, BindingLanguage language, JSObject *value, const RootObject *origin, const RootObject *current)
void *Instance::createLanguageInstanceForValue(ExecState*, BindingLanguage language, JSObject* value, const RootObject* origin, const RootObject* current)
{
void *result = 0;
......
......@@ -159,10 +159,10 @@ public:
virtual Class *getClass() const = 0;
virtual JSValue* getValueOfField(ExecState*, const Field*) const;
virtual JSValue* getValueOfUndefinedField(ExecState*, const Identifier& property, JSType hint) const { return jsUndefined(); }
virtual JSValue* getValueOfUndefinedField(ExecState*, const Identifier&, JSType) const { return jsUndefined(); }
virtual void setValueOfField(ExecState*, const Field*, JSValue*) const;
virtual bool supportsSetValueOfUndefinedField() { return false; }
virtual void setValueOfUndefinedField(ExecState*, const Identifier& property, JSValue*) {}
virtual void setValueOfUndefinedField(ExecState*, const Identifier&, JSValue*) {}
virtual JSValue* invokeMethod(ExecState*, const MethodList&, const List& args) = 0;
virtual JSValue* invokeDefaultMethod(ExecState*, const List& args) = 0;
......
......@@ -44,13 +44,13 @@ RuntimeArray::~RuntimeArray()
delete _array;
}
JSValue *RuntimeArray::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
JSValue *RuntimeArray::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
return jsNumber(thisObj->getLength());
}
JSValue *RuntimeArray::indexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
JSValue *RuntimeArray::indexGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeArray *thisObj = static_cast<RuntimeArray *>(slot.slotBase());
return thisObj->getConcreteArray()->valueAt(exec, slot.index());
......@@ -102,7 +102,7 @@ void RuntimeArray::put(ExecState *exec, const Identifier &propertyName, JSValue
JSObject::put(exec, propertyName, value, attr);
}
void RuntimeArray::put(ExecState *exec, unsigned index, JSValue *value, int attr)
void RuntimeArray::put(ExecState* exec, unsigned index, JSValue* value, int)
{
if (index >= getLength()) {
throwError(exec, RangeError);
......@@ -112,12 +112,12 @@ void RuntimeArray::put(ExecState *exec, unsigned index, JSValue *value, int attr
getConcreteArray()->setValueAt(exec, index, value);
}
bool RuntimeArray::deleteProperty(ExecState *exec, const Identifier &propertyName)
bool RuntimeArray::deleteProperty(ExecState*, const Identifier&)
{
return false;
}
bool RuntimeArray::deleteProperty(ExecState *exec, unsigned index)
bool RuntimeArray::deleteProperty(ExecState*, unsigned)
{
return false;
}
......@@ -41,7 +41,7 @@ RuntimeMethod::~RuntimeMethod()
{
}
JSValue *RuntimeMethod::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
JSValue *RuntimeMethod::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
{
RuntimeMethod *thisObj = static_cast<RuntimeMethod *>(slot.slotBase());
......@@ -100,7 +100,7 @@ CodeType RuntimeMethod::codeType() const
}