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.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158807
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-11-06 Dean Jackson <dino@apple.com>
+
+ 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 <mrowe@apple.com>
Remove references to OS X 10.7 from Xcode configuration settings.
#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, ...) {