Title: [158807] trunk/Source/ThirdParty/ANGLE
Revision
158807
Author
[email protected]
Date
2013-11-06 17:41:27 -0800 (Wed, 06 Nov 2013)

Log Message

kTraceBufferLen is unused in default builds
https://bugs.webkit.org/show_bug.cgi?id=123941
<rdar://problem/15409804>

Reviewed by Tim Horton.

kTraceBufferLen is not used in debug.cpp if TRACE_ENABLED is
not defined. This causes a warning in newer builds of clang.
For now, skip warnings on unused variables until we
update from ANGLE.

* src/compiler/debug.cpp: Add unused-variable ignore pragma.

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (158806 => 158807)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2013-11-07 01:20:14 UTC (rev 158806)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2013-11-07 01:41:27 UTC (rev 158807)
@@ -1,3 +1,18 @@
+2013-11-06  Dean Jackson  <[email protected]>
+
+        kTraceBufferLen is unused in default builds
+        https://bugs.webkit.org/show_bug.cgi?id=123941
+        <rdar://problem/15409804>
+
+        Reviewed by Tim Horton.
+
+        kTraceBufferLen is not used in debug.cpp if TRACE_ENABLED is
+        not defined. This causes a warning in newer builds of clang.
+        For now, skip warnings on unused variables until we
+        update from ANGLE.
+
+        * src/compiler/debug.cpp: Add unused-variable ignore pragma.
+
 2013-10-24  Mark Rowe  <[email protected]>
 
         Remove references to OS X 10.7 from Xcode configuration settings.

Modified: trunk/Source/ThirdParty/ANGLE/src/compiler/debug.cpp (158806 => 158807)


--- trunk/Source/ThirdParty/ANGLE/src/compiler/debug.cpp	2013-11-07 01:20:14 UTC (rev 158806)
+++ trunk/Source/ThirdParty/ANGLE/src/compiler/debug.cpp	2013-11-07 01:41:27 UTC (rev 158807)
@@ -14,8 +14,17 @@
 #include "compiler/InitializeParseContext.h"
 #include "compiler/ParseHelper.h"
 
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
 static const int kTraceBufferLen = 1024;
 
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+
 #ifdef TRACE_ENABLED
 extern "C" {
 void Trace(const char *format, ...) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to