Reviewed by Sam Weinig.
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 01:32:11 +0000 (01:32 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 01:32:11 +0000 (01:32 +0000)
        Build fix: Note some variables that are used only for ASSERTs.

        * API/testapi.c:
        (Base_finalize):
        (globalObject_initialize):
        (testInitializeFinalize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28636 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/API/testapi.c
JavaScriptCore/ChangeLog

index f71dabfce9676291d732f1dab6093f9077dedc9f..3794c7160e7301c3c0d9905a419027454f17b7ec 100644 (file)
@@ -333,6 +333,7 @@ static void Base_initialize(JSContextRef context, JSObjectRef object)
 static unsigned Base_didFinalize;
 static void Base_finalize(JSObjectRef object)
 {
+    UNUSED_PARAM(object);
     if (TestInitializeFinalize) {
         ASSERT((void*)4 == JSObjectGetPrivate(object));
         Base_didFinalize = true;
@@ -482,6 +483,8 @@ static void globalObject_initialize(JSContextRef context, JSObjectRef object)
     JSStringRef array = JSStringCreateWithUTF8CString("Array");
     JSObjectRef arrayConstructor = JSValueToObject(context, JSObjectGetProperty(context, globalObject, array, NULL), NULL);
     JSStringRelease(array);
+
+    UNUSED_PARAM(arrayConstructor);
     ASSERT(arrayConstructor);
 }
 
@@ -515,6 +518,7 @@ static char* createStringWithContentsOfFile(const char* fileName);
 static void testInitializeFinalize()
 {
     JSObjectRef o = JSObjectMake(context, Derived_class(context), (void*)1);
+    UNUSED_PARAM(o);
     ASSERT(JSObjectGetPrivate(o) == (void*)3);
 }
 
index d69f29fb93242d29a4b9bf2e72b4f3da71d16b51..c7fa415945a9022e57ec34f5b6f746357ed811b3 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-11  Geoffrey Garen  <ggaren@apple.com>
+
+        Reviewed by Sam Weinig.
+        
+        Build fix: Note some variables that are used only for ASSERTs.
+
+        * API/testapi.c:
+        (Base_finalize):
+        (globalObject_initialize):
+        (testInitializeFinalize):
+
 2007-12-11  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Darin Adler.