Reviewed by Kevin McCullough.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2006 17:20:04 +0000 (17:20 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2006 17:20:04 +0000 (17:20 +0000)
        * wtf/Assertions.cpp: Fix build when _DEBUG is not defined.

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

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/Assertions.cpp

index 9f2f8d82c0671a2cfc5902d75aa06e96e9ffd18f..c3b95a05d3f38882bb69cb4abcfede15975d8187 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-05  Darin Adler  <darin@apple.com>
+
+        Reviewed by Kevin McCullough.
+
+        * wtf/Assertions.cpp: Fix build when _DEBUG is not defined.
+
 2006-10-04  Kevin McCullough  <KMcCullough@apple.com>
 
         Reviewed by Adam.
index 74a1af46bbceb689e907aea5565d5cb9d69f6c3e..456a0971253aa0b04c4653086502afb2d4ecb6cf 100644 (file)
@@ -99,7 +99,7 @@ static void printf_stderr_common(const char* format, ...)
 
 static void printCallSite(const char* file, int line, const char* function)
 {
-#if PLATFORM(WIN)
+#if PLATFORM(WIN) && defined _DEBUG
     _CrtDbgReport(_CRT_WARN, file, line, NULL, "%s\n", function);
 #else
     printf_stderr_common("(%s:%d %s)\n", file, line, function);