Windows build fix.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 21:26:49 +0000 (21:26 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 21:26:49 +0000 (21:26 +0000)
        * kjs/date_object.cpp:
        (KJS::DateProtoFuncToLocaleString::callAsFunction): Fix unused arg warning.
        (KJS::DateProtoFuncToLocaleDateString::callAsFunction): ditto
        (KJS::DateProtoFuncToLocaleTimeString::callAsFunction): ditto

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/date_object.cpp

index 4d6ce8ac3952f2098884f9283c60b4e87c483552..58271f9d64a6968610eb4d2b9a7f7e5f3b434bf8 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-08  Sam Weinig  <sam@webkit.org>
+
+        Windows build fix.
+
+        * kjs/date_object.cpp:
+        (KJS::DateProtoFuncToLocaleString::callAsFunction): Fix unused arg warning.
+        (KJS::DateProtoFuncToLocaleDateString::callAsFunction): ditto
+        (KJS::DateProtoFuncToLocaleTimeString::callAsFunction): ditto
+
 2007-11-08  Mark Rowe  <mrowe@apple.com>
 
         Gtk build fix.
index a00a384e45df6b4d90881242f60107fb9f7a634d..55ca2bc1a037ad28dae6345d08ac355926dcc415 100644 (file)
@@ -57,6 +57,7 @@
 #include <wtf/Assertions.h>
 #include <wtf/MathExtras.h>
 #include <wtf/StringExtras.h>
+#include <wtf/UnusedParam.h>
 
 #if PLATFORM(MAC)
     #include <CoreFoundation/CoreFoundation.h>
@@ -1022,6 +1023,8 @@ JSValue* DateProtoFuncToLocaleString::callAsFunction(ExecState* exec, JSObject*
     double secs = floor(milli / msPerSecond);
     return jsString(formatLocaleDate(exec, secs, true, true, args));
 #else
+    UNUSED_PARAM(args);
+
     const bool utc = false;
 
     GregorianDateTime t;
@@ -1045,6 +1048,8 @@ JSValue* DateProtoFuncToLocaleDateString::callAsFunction(ExecState* exec, JSObje
     double secs = floor(milli / msPerSecond);
     return jsString(formatLocaleDate(exec, secs, true, false, args));
 #else
+    UNUSED_PARAM(args);
+
     const bool utc = false;
 
     GregorianDateTime t;
@@ -1068,6 +1073,8 @@ JSValue* DateProtoFuncToLocaleTimeString::callAsFunction(ExecState* exec, JSObje
     double secs = floor(milli / msPerSecond);
     return jsString(formatLocaleDate(exec, secs, false, true, args));
 #else
+    UNUSED_PARAM(args);
+
     const bool utc = false;
 
     GregorianDateTime t;