Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 21:36:56 +0000 (21:36 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 21:36:56 +0000 (21:36 +0000)
        - 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: https://svn.webkit.org/repository/webkit/trunk@13015 268f45cc-cd09-0410-ab3c-d52691b4dbfc

45 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
JavaScriptCore/bindings/NP_jsobject.cpp
JavaScriptCore/bindings/c/c_class.h
JavaScriptCore/bindings/c/c_utility.cpp
JavaScriptCore/bindings/jni/jni_class.cpp
JavaScriptCore/bindings/jni/jni_instance.cpp
JavaScriptCore/bindings/jni/jni_jsobject.cpp
JavaScriptCore/bindings/jni/jni_objc.mm
JavaScriptCore/bindings/objc/WebScriptObject.mm
JavaScriptCore/bindings/objc/objc_class.h
JavaScriptCore/bindings/objc/objc_class.mm
JavaScriptCore/bindings/objc/objc_instance.mm
JavaScriptCore/bindings/objc/objc_runtime.mm
JavaScriptCore/bindings/runtime.cpp
JavaScriptCore/bindings/runtime.h
JavaScriptCore/bindings/runtime_array.cpp
JavaScriptCore/bindings/runtime_method.cpp
JavaScriptCore/bindings/runtime_object.cpp
JavaScriptCore/bindings/runtime_root.cpp
JavaScriptCore/kjs/array_object.cpp
JavaScriptCore/kjs/bool_object.cpp
JavaScriptCore/kjs/date_object.cpp
JavaScriptCore/kjs/error_object.cpp
JavaScriptCore/kjs/function.cpp
JavaScriptCore/kjs/function_object.cpp
JavaScriptCore/kjs/internal.cpp
JavaScriptCore/kjs/interpreter.cpp
JavaScriptCore/kjs/interpreter.h
JavaScriptCore/kjs/lexer.cpp
JavaScriptCore/kjs/lookup.h
JavaScriptCore/kjs/nodes.cpp
JavaScriptCore/kjs/number_object.cpp
JavaScriptCore/kjs/object.cpp
JavaScriptCore/kjs/object_object.cpp
JavaScriptCore/kjs/property_slot.cpp
JavaScriptCore/kjs/reference.cpp
JavaScriptCore/kjs/reference_list.cpp
JavaScriptCore/kjs/regexp_object.cpp
JavaScriptCore/kjs/string_object.cpp
JavaScriptCore/kxmlcore/Assertions.mm
JavaScriptCore/kxmlcore/FastMalloc.cpp
JavaScriptCore/kxmlcore/HashTable.h
JavaScriptCore/kxmlcore/UnusedParam.h [new file with mode: 0644]
JavaScriptCore/pcre/pcre_get.c

index d1dffaf9af3c8930ab319bfd05f5cc8e910fb838..6a7b076aa5782d3ba3753376e5e53754fe75cdc2 100644 (file)
@@ -1,3 +1,149 @@
+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
index 3b068ac29df7fe7ef78bfb47dad01796d6e81e65..3d8e5687bbe01992f7a82a5a6c1f51632d530849 100644 (file)
                                );
                                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;
                };
                                );
                                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;
                };
                                        "$(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;
                };
index 9ed96fb0be95bd15bd0858be097512df868e35b6..a45073188fec4b131894a5222550ccf8f1bc1624 100644 (file)
@@ -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;
+        ExecStateexec = obj->executionContext->interpreter()->globalExec();
+        JSValueresult;
         
         JSLock lock;
-        NPUTF16 *scriptString;
+        NPUTF16scriptString;
         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; 
index bea10b6cd7a2994fdd62391ae9260aa6d1df2b00..6f07aa6cfd4185d7971ba0a138ca4fcd8f2ad5d9 100644 (file)
@@ -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;
     };
     
index 585790c8e74f614e01b3f0ec2a462697af235fa3..433a4c0493e60bc21319a0474fd80b122bd19db2 100644 (file)
@@ -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;
 
index 861ae971045fa54dd0da392e5a6a764ff2f06557..ae4108116d0a93b2a1e3b0d47d9525f99b22a5ce 100644 (file)
@@ -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);
index db2dbc59648967786487fe2ab07cc8dfa9e2cca6..e889951a915ee37e00a12f8100286c11d6786c0f 100644 (file)
@@ -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();
 }
index e688ecb65a569c73596d250bdbe913acef720680..0b7283c14fed64d600ab73e227e99ac060c94f1d 100644 (file)
@@ -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;
index b9d4aa199b62fe3dd763917e3841398a508a9c1b..a767d3f78042a8a5874d804a21c0d6712382a0ac 100644 (file)
@@ -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;
     
index a9cac7e761dd6acbd02dd9d34641f732fbad6fcb..3fb858ba8cbc1b4c26ab7e54581c5693a43aa5ee 100644 (file)
@@ -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;
 }
 
index 609b8aa25594ff47c5947a04a6fc53bd294b9b8d..8a359a4b69969ba1961f72c3da9eab9682dbfe67 100644 (file)
@@ -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; }
index 04109a3ce9880e96b19d618eb549229eccaa0718..597e22b5e730c49d30503029c5a3c2e0bff954aa 100644 (file)
@@ -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();
index 62fe79065ee13f540eb74ecbb0778ae09d9b9889..f1ed84afe43193911c8dcb50cfd0741527b68813 100644 (file)
@@ -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();
     
index 7fb462462212f7c588706a94098c55ee5bc843fd..94f549c33e99c65efc1506ce9f401b8d5177b719 100644 (file)
@@ -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();
     
index 6bc42857c34900438e68833abb0dfaee6a18cbb6..b1e4b62eccf3ec2126b735058d62810ad5303854 100644 (file)
@@ -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;
     
index 8bc2e0b35017c112e70bf978fb91d5fb46761bca..bc5a1587371f75ffeb82241e70051ce533821fd4 100644 (file)
@@ -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;
index 8baf05c17e239d2f284825b64874338f3c6ab47f..3c20415e4c092abef1c8129caad2f160834614dc 100644 (file)
@@ -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;
 }
index f4c2f7b78a082f9f9ef4af4697ae48a44756b8fe..b6fcfd18aa86053562f762576e0d992dd01d0af6 100644 (file)
@@ -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
 }
 
 
-Completion RuntimeMethod::execute(ExecState *exec)
+Completion RuntimeMethod::execute(ExecState*)
 {
     return Completion(Normal, jsUndefined());
 }
index 46085d07d28eacbfa240099416149f614c6083d0..27728c26513c200575b0a5a9266a87c44e7d70ab 100644 (file)
@@ -48,7 +48,7 @@ RuntimeObjectImp::RuntimeObjectImp(Bindings::Instance *i)
 {
 }
 
-JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
 {
     RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     Bindings::Instance *instance = thisObj->instance.get();
@@ -63,7 +63,7 @@ JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, JSObject *origi
     return result;
 }
 
-JSValue *RuntimeObjectImp::fieldGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::fieldGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
 {
     RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     Bindings::Instance *instance = thisObj->instance.get();
@@ -79,7 +79,7 @@ JSValue *RuntimeObjectImp::fieldGetter(ExecState *exec, JSObject *originalObject
     return result;
 }
 
-JSValue *RuntimeObjectImp::methodGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *RuntimeObjectImp::methodGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
 {
     RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase());
     Bindings::Instance *instance = thisObj->instance.get();
@@ -133,8 +133,7 @@ bool RuntimeObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& pro
     return false;
 }
 
-void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName,
-                    JSValue *value, int attr)
+void RuntimeObjectImp::put(ExecState* exec, const Identifier& propertyName, JSValue* value, int)
 {
     instance->begin();
 
@@ -152,7 +151,7 @@ void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName,
     instance->end();
 }
 
-bool RuntimeObjectImp::canPut(ExecState *exec, const Identifier &propertyName) const
+bool RuntimeObjectImp::canPut(ExecState*, const Identifier& propertyName) const
 {
     bool result = false;
 
@@ -168,14 +167,13 @@ bool RuntimeObjectImp::canPut(ExecState *exec, const Identifier &propertyName) c
     return result;
 }
 
-bool RuntimeObjectImp::deleteProperty(ExecState *exec,
-                            const Identifier &propertyName)
+bool RuntimeObjectImp::deleteProperty(ExecState*, const Identifier&)
 {
     // Can never remove a property of a RuntimeObject.
     return false;
 }
 
-JSValue *RuntimeObjectImp::defaultValue(ExecState *exec, JSType hint) const
+JSValue *RuntimeObjectImp::defaultValue(ExecState*, JSType hint) const
 {
     JSValue *result;
     
@@ -194,7 +192,7 @@ bool RuntimeObjectImp::implementsCall() const
     return true;
 }
 
-JSValue *RuntimeObjectImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
+JSValue *RuntimeObjectImp::callAsFunction(ExecState* exec, JSObject*, const List& args)
 {
     instance->begin();
 
index 98e865ca5bdd15cf95f51fdca35adba70720e6d0..d69dd17cc388bad5ff0ea7b6df8d2f6f6fbcc00a 100644 (file)
@@ -272,8 +272,7 @@ void RootObject::dispatchToJavaScriptThread(JSObjectCallContext *context)
     unlockJavaScriptAccess();
 }
 
-static void performJavaScriptAccess(void *info);
-static void performJavaScriptAccess(void *i)
+static void performJavaScriptAccess(void*)
 {
     assert (CFRunLoopGetCurrent() == RootObject::runLoop());
     
index a7a0084285ad9bc49f2aa8f5a612810956a5c828..150a03c6d8aff6b12a2d9e99355388e4b2537162 100644 (file)
@@ -75,12 +75,12 @@ ArrayInstance::~ArrayInstance()
   fastFree(storage);
 }
 
-JSValue *ArrayInstance::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *ArrayInstance::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
 {
   return jsNumber(static_cast<ArrayInstance *>(slot.slotBase())->length);
 }
 
-bool ArrayInstance::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool ArrayInstance::getOwnPropertySlot(ExecStateexec, const Identifier& propertyName, PropertySlot& slot)
 {
   if (propertyName == lengthPropertyName) {
     slot.setCustom(this, lengthGetter);
@@ -419,14 +419,13 @@ const ClassInfo ArrayPrototype::info = {"Array", &ArrayInstance::info, &arrayTab
 */
 
 // ECMA 15.4.4
-ArrayPrototype::ArrayPrototype(ExecState *exec,
-                                     ObjectPrototype *objProto)
+ArrayPrototype::ArrayPrototype(ExecState*, ObjectPrototype* objProto)
   : ArrayInstance(objProto, 0)
 {
   setInternalValue(jsNull());
 }
 
-bool ArrayPrototype::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool ArrayPrototype::getOwnPropertySlot(ExecStateexec, const Identifier& propertyName, PropertySlot& slot)
 {
   return getStaticFunctionSlot<ArrayProtoFunc, ArrayInstance>(exec, &arrayTable, this, propertyName, slot);
 }
index 85b69d5a68c7d1174d8050ce2f5ff86b6d4018fc..9aa302d4efad4aefdc1a20b44735ed4f8b3c039e 100644 (file)
@@ -87,8 +87,7 @@ JSValue *BooleanProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, co
 // ------------------------------ BooleanObjectImp -----------------------------
 
 
-BooleanObjectImp::BooleanObjectImp(ExecState *exec, FunctionPrototype *funcProto,
-                                   BooleanPrototype *booleanProto)
+BooleanObjectImp::BooleanObjectImp(ExecState*, FunctionPrototype* funcProto, BooleanPrototype* booleanProto)
   : InternalFunctionImp(funcProto)
 {
   putDirect(prototypePropertyName, booleanProto, DontEnum|DontDelete|ReadOnly);
index 3819302871178100829da0f8b191dee86d676433..204557ae566c32abc5361e2d85d9eddb2e5106c8 100644 (file)
@@ -799,14 +799,14 @@ JSValue *DateObjectImp::callAsFunction(ExecState * /*exec*/, JSObject * /*thisOb
 
 // ------------------------------ DateObjectFuncImp ----------------------------
 
-DateObjectFuncImp::DateObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto, int i, int len, const Identifier& name)
+DateObjectFuncImp::DateObjectFuncImp(ExecState*, FunctionPrototype* funcProto, int i, int len, const Identifier& name)
     : InternalFunctionImp(funcProto, name), id(i)
 {
     putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
 }
 
 // ECMA 15.9.4.2 - 3
-JSValue *DateObjectFuncImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
+JSValue *DateObjectFuncImp::callAsFunction(ExecState* exec, JSObject*, const List& args)
 {
   if (id == Parse) {
     return jsNumber(parseDate(args[0]->toString(exec)));
index bb795798395fe6ba2ddc9f9caf27a7eb045775c5..08ea36b24000369077a39cc96b712635b8973284 100644 (file)
@@ -84,8 +84,7 @@ JSValue *ErrorProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, cons
 
 // ------------------------------ ErrorObjectImp -------------------------------
 
-ErrorObjectImp::ErrorObjectImp(ExecState *exec, FunctionPrototype *funcProto,
-                               ErrorPrototype *errorProto)
+ErrorObjectImp::ErrorObjectImp(ExecState*, FunctionPrototype* funcProto, ErrorPrototype* errorProto)
   : InternalFunctionImp(funcProto)
 {
   // ECMA 15.11.3.1 Error.prototype
@@ -121,8 +120,7 @@ JSValue *ErrorObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/,
 
 // ------------------------------ NativeErrorPrototype ----------------------
 
-NativeErrorPrototype::NativeErrorPrototype(ExecState *exec, ErrorPrototype *errorProto,
-                                                 ErrorType et, UString name, UString message)
+NativeErrorPrototype::NativeErrorPrototype(ExecState*, ErrorPrototype* errorProto, ErrorType et, UString name, UString message)
   : JSObject(errorProto)
 {
   errType = et;
@@ -134,9 +132,9 @@ NativeErrorPrototype::NativeErrorPrototype(ExecState *exec, ErrorPrototype *erro
 
 const ClassInfo NativeErrorImp::info = {"Function", &InternalFunctionImp::info, 0, 0};
 
-NativeErrorImp::NativeErrorImp(ExecState *exec, FunctionPrototype *funcProto,
-                               JSObject *prot)
-  : InternalFunctionImp(funcProto), proto(prot)
+NativeErrorImp::NativeErrorImp(ExecState*, FunctionPrototype* funcProto, JSObject* prot)
+  : InternalFunctionImp(funcProto)
+  , proto(prot)
 {
   putDirect(lengthPropertyName, jsNumber(1), DontDelete|ReadOnly|DontEnum); // ECMA 15.11.7.5
   putDirect(prototypePropertyName, proto, DontDelete|ReadOnly|DontEnum);
index 061a8542354ec4eefc8c88b98070f06014cbfe4c..68226d6e8fdfe9f9b2e5f0620187ba82799c6114 100644 (file)
@@ -199,7 +199,7 @@ void FunctionImp::processVarDecls(ExecState */*exec*/)
 {
 }
 
-JSValue *FunctionImp::argumentsGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *FunctionImp::argumentsGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
 {
   FunctionImp *thisObj = static_cast<FunctionImp *>(slot.slotBase());
   ContextImp *context = exec->_context;
@@ -212,7 +212,7 @@ JSValue *FunctionImp::argumentsGetter(ExecState *exec, JSObject *originalObject,
   return jsNull();
 }
 
-JSValue *FunctionImp::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *FunctionImp::lengthGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot)
 {
   FunctionImp *thisObj = static_cast<FunctionImp *>(slot.slotBase());
   const Parameter *p = thisObj->param.get();
@@ -435,7 +435,7 @@ void Arguments::mark()
     _activationObject->mark();
 }
 
-JSValue *Arguments::mappedIndexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *Arguments::mappedIndexGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
 {
   Arguments *thisObj = static_cast<Arguments *>(slot.slotBase());
   return thisObj->_activationObject->get(exec, thisObj->indexToNameMap[propertyName]);
@@ -482,7 +482,7 @@ ActivationImp::ActivationImp(FunctionImp *function, const List &arguments)
   // FIXME: Do we need to support enumerating the arguments property?
 }
 
-JSValue *ActivationImp::argumentsGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *ActivationImp::argumentsGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
 {
   ActivationImp *thisObj = static_cast<ActivationImp *>(slot.slotBase());
 
@@ -524,7 +524,7 @@ bool ActivationImp::deleteProperty(ExecState *exec, const Identifier &propertyNa
     return JSObject::deleteProperty(exec, propertyName);
 }
 
-void ActivationImp::put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr)
+void ActivationImp::put(ExecState*, const Identifier& propertyName, JSValue* value, int attr)
 {
   // There's no way that an activation object can have a prototype or getter/setter properties
   assert(!_prop.hasGetterSetterProperties());
index 1af6d0b410715462fc93bf158f3736954a80da4b..80af858367820c515488fb80003081c06b4b979c 100644 (file)
@@ -145,7 +145,7 @@ JSValue *FunctionProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, c
 
 // ------------------------------ FunctionObjectImp ----------------------------
 
-FunctionObjectImp::FunctionObjectImp(ExecState *exec, FunctionPrototype *funcProto)
+FunctionObjectImp::FunctionObjectImp(ExecState*, FunctionPrototype* funcProto)
   : InternalFunctionImp(funcProto)
 {
   putDirect(prototypePropertyName, funcProto, DontEnum|DontDelete|ReadOnly);
index c171e783e5bf69aeb2c86e4670c7212c429aeb16..d851335c2a9620aa78215b26e877455e79323d31 100644 (file)
@@ -149,13 +149,13 @@ void GetterSetterImp::mark()
         setter->mark();
 }
 
-JSValue *GetterSetterImp::toPrimitive(ExecState *exec, JSType) const
+JSValue *GetterSetterImp::toPrimitive(ExecState*, JSType) const
 {
     assert(false);
     return jsNull();
 }
 
-bool GetterSetterImp::toBoolean(ExecState *) const
+bool GetterSetterImp::toBoolean(ExecState*) const
 {
     assert(false);
     return false;
index 8fa941036121ac27b5afc8d92ede63fad7f20578..a7251e70147a3122712cdfd6c4818f84d4381663 100644 (file)
@@ -109,7 +109,7 @@ bool Interpreter::checkSyntax(const UString &code)
   return rep->checkSyntax(code);
 }
 
-Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue* thisV)
+Completion Interpreter::evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue*)
 {
     return evaluate(sourceURL, startingLineNumber, code.data(), code.size());
 }
index f6d6428f28e81cec82819f0862d9a99c85238e87..a230e38cc99496e0fb8921f4df00d3e0dc2be0f9 100644 (file)
@@ -376,7 +376,7 @@ namespace KJS {
      * is used to determine if an object is the Window object so we can perform
      * security checks.
      */
-    virtual bool isGlobalObject(JSValue *v) { return false; }
+    virtual bool isGlobalObject(JSValue*) { return false; }
     
     /** 
      * Find the interpreter for a particular global object.  This should really
@@ -385,7 +385,7 @@ namespace KJS {
      * created in an application to correctly implement this method.  The only
      * override of this method is currently in WebCore.
      */
-    virtual Interpreter *interpreterForGlobalObject (const JSValue *imp) { return 0; }
+    virtual Interpreter* interpreterForGlobalObject(const JSValue*) { return 0; }
     
     /**
      * Determine if the it is 'safe' to execute code in the target interpreter from an
@@ -393,7 +393,7 @@ namespace KJS {
      * cross frame security rules.  In particular, attempts to access 'bound' objects are
      * not allowed unless isSafeScript returns true.
      */
-    virtual bool isSafeScript (const Interpreter *target) { return true; }
+    virtual bool isSafeScript(const Interpreter*) { return true; }
   
 #if __APPLE__
     virtual void *createLanguageInstanceForValue(ExecState*, int language, JSObject* value, const Bindings::RootObject* origin, const Bindings::RootObject* current);
index d8c46359ab05b672b7d00799b2d688eb56860709..6a2ea072f2e686a9c385ca7d856774015d2b1c66 100644 (file)
@@ -873,7 +873,8 @@ void Lexer::doneParsing()
 const int initialCapacity = 64;
 const int growthFactor = 2;
 
-Identifier *Lexer::makeIdentifier(KJS::UChar *buffer, unsigned int pos)
+// FIXME: this completely ignores its parameters, instead using buffer16 and pos16 - wtf?
+Identifier *Lexer::makeIdentifier(KJS::UChar*, unsigned int)
 {
   if (numIdentifiers == identifiersCapacity) {
     identifiersCapacity = (identifiersCapacity == 0) ? initialCapacity : identifiersCapacity *growthFactor;
@@ -885,7 +886,8 @@ Identifier *Lexer::makeIdentifier(KJS::UChar *buffer, unsigned int pos)
   return identifier;
 }
  
-UString *Lexer::makeUString(KJS::UChar *buffer, unsigned int pos)
+// FIXME: this completely ignores its parameters, instead using buffer16 and pos16 - wtf?
+UString *Lexer::makeUString(KJS::UChar*, unsigned int)
 {
   if (numStrings == stringsCapacity) {
     stringsCapacity = (stringsCapacity == 0) ? initialCapacity : stringsCapacity *growthFactor;
index e276734ac41d6d889c4c89a14ab524c23133c9e6..aa17a581a4c18b75cd130494062990d335824a61 100644 (file)
@@ -125,7 +125,7 @@ namespace KJS {
    * Helper for getStaticFunctionSlot and getStaticPropertySlot
    */
   template <class FuncImp>
-  inline JSValue *staticFunctionGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot& slot)
+  inline JSValue *staticFunctionGetter(ExecState* exec, JSObject*, const Identifier& propertyName, const PropertySlot& slot)
   {
       // Look for cached value in dynamic map of properties (in JSObject)
       JSObject *thisObj = slot.slotBase();
@@ -144,10 +144,10 @@ namespace KJS {
    * Helper for getStaticValueSlot and getStaticPropertySlot
    */
   template <class ThisImp>
-  inline JSValue *staticValueGetter(ExecState *exec, JSObject *originalObject, const Identifier&, const PropertySlot& slot)
+  inline JSValue *staticValueGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot& slot)
   {
-      ThisImp *thisObj = static_cast<ThisImp *>(slot.slotBase());
-      const HashEntry *entry = slot.staticEntry();
+      ThisImp* thisObj = static_cast<ThisImp*>(slot.slotBase());
+      const HashEntryentry = slot.staticEntry();
       return thisObj->getValueProperty(exec, entry->value);
   }
 
index b41b8abafef0e2ed4b8596759649bb98af5d0d52..e6ea94330f02863cdfd69eca0575ebbc12e1c051 100644 (file)
@@ -225,7 +225,7 @@ bool StatementNode::hitStatement(ExecState *exec)
     return true; // continue
 }
 
-void StatementNode::processFuncDecl(ExecState *exec)
+void StatementNode::processFuncDecl(ExecState*)
 {
 }
 
@@ -414,7 +414,7 @@ void PropertyListNode::breakCycle()
 
 // ------------------------------ PropertyNode -----------------------------
 // ECMA 11.1.5
-JSValue *PropertyNode::evaluate(ExecState *exec)
+JSValue *PropertyNode::evaluate(ExecState*)
 {
   assert(false);
   return jsNull();
@@ -423,7 +423,7 @@ JSValue *PropertyNode::evaluate(ExecState *exec)
 // ---------------------------- PropertyNameNode -------------------------------
 
 // ECMA 11.1.5
-JSValue *PropertyNameNode::evaluate(ExecState *)
+JSValue *PropertyNameNode::evaluate(ExecState*)
 {
   JSValue *s;
 
index 02c318ca44dfdbd4b0437d8f1838cf9ce67edb58..de57c5623a5103d83417ff9fb4a302f275e52fc7 100644 (file)
@@ -391,9 +391,7 @@ const ClassInfo NumberObjectImp::info = {"Function", &InternalFunctionImp::info,
   MIN_VALUE             NumberObjectImp::MinValue       DontEnum|DontDelete|ReadOnly
 @end
 */
-NumberObjectImp::NumberObjectImp(ExecState *exec,
-                                 FunctionPrototype *funcProto,
-                                 NumberPrototype *numberProto)
+NumberObjectImp::NumberObjectImp(ExecState*, FunctionPrototype* funcProto, NumberPrototype* numberProto)
   : InternalFunctionImp(funcProto)
 {
   // Number.Prototype
@@ -403,7 +401,7 @@ NumberObjectImp::NumberObjectImp(ExecState *exec,
   putDirect(lengthPropertyName, jsNumber(1), ReadOnly|DontDelete|DontEnum);
 }
 
-bool NumberObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot& slot)
+bool NumberObjectImp::getOwnPropertySlot(ExecStateexec, const Identifier& propertyName, PropertySlot& slot)
 {
   return getStaticValueSlot<NumberObjectImp, InternalFunctionImp>(exec, &numberTable, this, propertyName, slot);
 }
index fd1f33a275c6461b9f799b2ae6921aca8e7dd0fa..0caf0fc0077aac7969a91bf1f4769956518fc68d 100644 (file)
@@ -380,7 +380,7 @@ const HashEntry* JSObject::findPropertyHashEntry(const Identifier& propertyName)
   return 0;
 }
 
-void JSObject::defineGetter(ExecState *exec, const Identifier& propertyName, JSObject *getterFunc)
+void JSObject::defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunc)
 {
     JSValue *o = getDirect(propertyName);
     GetterSetterImp *gs;
@@ -396,7 +396,7 @@ void JSObject::defineGetter(ExecState *exec, const Identifier& propertyName, JSO
     gs->setGetter(getterFunc);
 }
 
-void JSObject::defineSetter(ExecState *exec, const Identifier& propertyName, JSObject *setterFunc)
+void JSObject::defineSetter(ExecState*, const Identifier& propertyName, JSObject* setterFunc)
 {
     JSValue *o = getDirect(propertyName);
     GetterSetterImp *gs;
@@ -444,13 +444,13 @@ bool JSObject::implementsHasInstance() const
   return false;
 }
 
-bool JSObject::hasInstance(ExecState */*exec*/, JSValue */*value*/)
+bool JSObject::hasInstance(ExecState *, JSValue *)
 {
   assert(false);
   return false;
 }
 
-bool JSObject::propertyIsEnumerable(ExecState *exec, const Identifier &propertyName) const
+bool JSObject::propertyIsEnumerable(ExecState*, const Identifier& propertyName) const
 {
   int attributes;
  
index d38351eb9a393af4fda4b54580c58d8ee09d924f..2114e5cf410cc79073afad35be997087ef5878fd 100644 (file)
@@ -155,9 +155,7 @@ JSValue *ObjectProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, con
 
 // ------------------------------ ObjectObjectImp --------------------------------
 
-ObjectObjectImp::ObjectObjectImp(ExecState *exec,
-                                 ObjectPrototype *objProto,
-                                 FunctionPrototype *funcProto)
+ObjectObjectImp::ObjectObjectImp(ExecState*, ObjectPrototype* objProto, FunctionPrototype* funcProto)
   : InternalFunctionImp(funcProto)
 {
   // ECMA 15.2.3.1
index 730c7f941dd4bce24df25cd1c577a183c7ce9aeb..3d3dacf3b209547c21500eaa0c9c013878d03fc3 100644 (file)
 
 namespace KJS {
 
-JSValue *PropertySlot::undefinedGetter(ExecState *, JSObject *, const Identifier& propertyName, const PropertySlot& slot)
+JSValue *PropertySlot::undefinedGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot&)
 {
     return jsUndefined();
 }
 
-JSValue *PropertySlot::functionGetter(ExecState *exec, JSObject *originalObject, const Identifier&, const PropertySlot& slot)
+JSValue *PropertySlot::functionGetter(ExecState* exec, JSObject* originalObject, const Identifier&, const PropertySlot& slot)
 {
     return slot.m_data.getterFunc->call(exec, originalObject, List::empty());
 }
index 8ee7173672c6c46a493cfbae49d6101380b419c7..c60a5fc283e09ccd52ab8a179125f79c20290733 100644 (file)
@@ -43,7 +43,7 @@ Reference::Reference(JSObject *b, unsigned p)
 {
 }
 
-Identifier Reference::getPropertyName(ExecState *exec) const
+Identifier Reference::getPropertyName(ExecState*) const
 {
   if (propertyNameIsNumber && prop.isNull())
     prop = Identifier::from(propertyNameAsNumber);
index 4f0c149140484256602a1b5037f0ebde6ada066e..149f39499eaae447c78b2d5f404191e833293c8a 100644 (file)
@@ -149,7 +149,7 @@ const Reference *ReferenceListIterator::operator->() const
   return &node->reference;
 }
 
-const Reference &ReferenceListIterator::operator++(int i
+const Reference &ReferenceListIterator::operator++(int) 
 {
   const Reference &ref = node->reference;
   node = node->next;
index 68c6eab03b43f9eeb817991c0948bc49539f69b8..cb8f5aa128e36ee43d72ec90e86fc957bfdb5f89 100644 (file)
@@ -184,9 +184,7 @@ const ClassInfo RegExpObjectImp::info = {"Function", &InternalFunctionImp::info,
 @end
 */
 
-RegExpObjectImp::RegExpObjectImp(ExecState *exec,
-                                 FunctionPrototype *funcProto,
-                                 RegExpPrototype *regProto)
+RegExpObjectImp::RegExpObjectImp(ExecState*, FunctionPrototype* funcProto, RegExpPrototype* regProto)
 
   : InternalFunctionImp(funcProto), multiline(false), lastInput(""), lastNumSubPatterns(0)
 {
@@ -304,7 +302,7 @@ bool RegExpObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& prop
   return getStaticValueSlot<RegExpObjectImp, InternalFunctionImp>(exec, &RegExpTable, this, propertyName, slot);
 }
 
-JSValue *RegExpObjectImp::getValueProperty(ExecState *exec, int token) const
+JSValue *RegExpObjectImp::getValueProperty(ExecState*, int token) const
 {
   switch (token) {
     case Dollar1:
@@ -349,7 +347,7 @@ void RegExpObjectImp::put(ExecState *exec, const Identifier &propertyName, JSVal
   lookupPut<RegExpObjectImp, InternalFunctionImp>(exec, propertyName, value, attr, &RegExpTable, this);
 }
 
-void RegExpObjectImp::putValueProperty(ExecState *exec, int token, JSValue *value, int attr)
+void RegExpObjectImp::putValueProperty(ExecState *exec, int token, JSValue *value, int)
 {
   switch (token) {
     case Input:
index 49fea35f9be68354d93de3a2505f49f4268dfb48..8ea0a94850f43ae7ea85b9d9c421b5ac5f974816 100644 (file)
@@ -53,12 +53,12 @@ StringInstance::StringInstance(JSObject *proto, const UString &string)
   setInternalValue(jsString(string));
 }
 
-JSValue *StringInstance::lengthGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)
+JSValue *StringInstance::lengthGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot)
 {
-    return jsNumber(static_cast<StringInstance *>(slot.slotBase())->internalValue()->toString(exec).size());
+    return jsNumber(static_cast<StringInstance*>(slot.slotBase())->internalValue()->toString(exec).size());
 }
 
-JSValue *StringInstance::indexGetter(ExecState *exec, JSObject *originalObject, const Identifier& propertyName, const PropertySlot &slot)
+JSValue *StringInstance::indexGetter(ExecState* exec, JSObject*, const Identifier&, const PropertySlot &slot)
 {
     const UChar c = static_cast<StringInstance *>(slot.slotBase())->internalValue()->toString(exec)[slot.index()];
     return jsString(UString(&c, 1));
@@ -152,8 +152,7 @@ const ClassInfo StringPrototype::info = {"String", &StringInstance::info, &strin
 @end
 */
 // ECMA 15.5.4
-StringPrototype::StringPrototype(ExecState *exec,
-                                       ObjectPrototype *objProto)
+StringPrototype::StringPrototype(ExecState*, ObjectPrototype* objProto)
   : StringInstance(objProto)
 {
   // The constructor will be added later, after StringObjectImp has been built
index 75d6062c98d97b4c6beb0aee4bee14077e74de31..4e86ce1d76042933d15f5b116300b74a3028a5e0 100644 (file)
@@ -115,7 +115,7 @@ static void fprintf_objc(const char *format, ...)
 }
 
 
-void KXCLog(const char *file, int line, const char *function, KXCLogChannel *channel, const char *format, ...)
+void KXCLog(const char*, int, const char*, KXCLogChannel *channel, const char *format, ...)
 {
     if (channel->state == KXCLogChannelUninitialized) {
         channel->state = KXCLogChannelOff;
index fd7125de09f256b6a7775c1fc871a8ff98400602..a7f68ac352b64d77b30088202ec4e230946598c4 100644 (file)
@@ -933,6 +933,11 @@ bool TCMalloc_PageHeap::Check() {
   return true;
 }
 
+#if ASSERT_DISABLED
+bool TCMalloc_PageHeap::CheckList(Span*, Length, Length) {
+  return true;
+}
+#else
 bool TCMalloc_PageHeap::CheckList(Span* list, Length min_pages, Length max_pages) {
   for (Span* s = list->next; s != list; s = s->next) {
     CHECK_CONDITION(s->free);
@@ -943,6 +948,7 @@ bool TCMalloc_PageHeap::CheckList(Span* list, Length min_pages, Length max_pages
   }
   return true;
 }
+#endif
 
 //-------------------------------------------------------------------
 // Free list
index f53ae146bbc576e9d611f9ab7aeb78f1fefa00f1..2244803293e88b8a8adad2e66275007d1a890bfc 100644 (file)
@@ -174,14 +174,17 @@ namespace KXMLCore {
 #endif
         }
 
+
+#if CHECK_HASHTABLE_ITERATORS
         void checkValidity(const const_iterator& other) const
         {
-#if CHECK_HASHTABLE_ITERATORS
             assert(m_table);
             assert(other.m_table);
             assert(m_table == other.m_table);
-#endif
         }
+#else
+        void checkValidity(const const_iterator&) const { }
+#endif
 
         PointerType m_position;
         PointerType m_endPosition;
@@ -251,7 +254,7 @@ namespace KXMLCore {
     public:
         static unsigned hash(const Key& key) { return HashFunctions::hash(key); }
         static bool equal(const Key& a, const Key& b) { return HashFunctions::equal(a, b); }
-        static void translate(Value& location, const Key& key, const Value& value, unsigned) { location = value; }
+        static void translate(Value& location, const Key&, const Value& value, unsigned) { location = value; }
     };
 
     template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits>
diff --git a/JavaScriptCore/kxmlcore/UnusedParam.h b/JavaScriptCore/kxmlcore/UnusedParam.h
new file mode 100644 (file)
index 0000000..968184c
--- /dev/null
@@ -0,0 +1,30 @@
+// -*- mode: c++; c-basic-offset: 4 -*-
+/*
+ *  Copyright (C) 2006 Apple Computer, Inc.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef KXMLCORE_UNUSED_PARAM
+#define KXMLCORE_UNUSED_PARAM
+
+// don't use this for C++, it should only be used in plain C files or
+// ObjC methods, where leaving off the parameter name is not allowed.
+
+#define UNUSED_PARAM(x) (void)x
+
+#endif // KXMLCORE_UNUSED_PARM
index a474e1d76c048666670cb23bbf34fea09e2c64ee..e19406dc1059ebd32dda08e28e0d7d086387e871 100644 (file)
@@ -44,6 +44,7 @@ for these functions came from Scott Wimer. */
 
 
 #include "pcre_internal.h"
+#include <kxmlcore/UnusedParam.h>
 
 
 /*************************************************
@@ -89,6 +90,9 @@ while (top > bot)
   if (c == 0) return (entry[0] << 8) + entry[1];
   if (c > 0) bot = mid + 1; else top = mid;
   }
+#else
+ UNUSED_PARAM(code);
+ UNUSED_PARAM(stringname);
 #endif
 
 return PCRE_ERROR_NOSUBSTRING;