ANGLE fails to build with trunk clang: unused constant kTraceBufferLen
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Dec 2013 19:31:21 +0000 (19:31 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Dec 2013 19:31:21 +0000 (19:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=125164
https://code.google.com/p/angleproject/issues/detail?id=534

Reviewed by Darin Adler.

Move the definition of the constant kTraceBufferLen under the macro
guard TRACE_ENABLED since it's only referenced in code guarded by
TRACE_ENABLED.

* src/compiler/debug.cpp:

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

Source/ThirdParty/ANGLE/ChangeLog
Source/ThirdParty/ANGLE/src/compiler/debug.cpp

index 4817745daa260a8144679321702bbfa837ddbe95..f069ce946c2ed8cad54fae7360262e6f90d2a9e0 100644 (file)
@@ -1,3 +1,17 @@
+2013-12-03  Daniel Bates  <dabates@apple.com>
+
+        ANGLE fails to build with trunk clang: unused constant kTraceBufferLen
+        https://bugs.webkit.org/show_bug.cgi?id=125164
+        https://code.google.com/p/angleproject/issues/detail?id=534
+
+        Reviewed by Darin Adler.
+
+        Move the definition of the constant kTraceBufferLen under the macro
+        guard TRACE_ENABLED since it's only referenced in code guarded by
+        TRACE_ENABLED.
+
+        * src/compiler/debug.cpp:
+
 2013-11-21  Alex Christensen  <achristensen@webkit.org>
 
         Remove ANGLEGenerated from Windows build.
index 6a7b042512764aec0ff6aa72e281c6c4d9c1a3f6..38d55acaf67afa2e102895c4694c59795d77b539 100644 (file)
@@ -14,9 +14,9 @@
 #include "compiler/InitializeParseContext.h"
 #include "compiler/ParseContext.h"
 
+#ifdef TRACE_ENABLED
 static const int kTraceBufferLen = 1024;
 
-#ifdef TRACE_ENABLED
 extern "C" {
 void Trace(const char *format, ...) {
     if (!format) return;