git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Part 2 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
[WebKit-https.git]
/
Source
/
ThirdParty
/
ANGLE
/
src
/
common
/
debug.cpp
diff --git
a/Source/ThirdParty/ANGLE/src/common/debug.cpp
b/Source/ThirdParty/ANGLE/src/common/debug.cpp
index d8d6ab89a4d5c53e505396bc2d583b4dc8a2ece3..3de5d4ecee11cb6cd0d249ba23fa27763c1b8dfc 100644
(file)
--- a/
Source/ThirdParty/ANGLE/src/common/debug.cpp
+++ b/
Source/ThirdParty/ANGLE/src/common/debug.cpp
@@
-11,17
+11,22
@@
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
+#ifndef TRACE_OUTPUT_FILE
+#define TRACE_OUTPUT_FILE "debug.txt"
+#endif
+
static bool trace_on = true;
namespace gl
{
void trace(const char *format, ...)
{
static bool trace_on = true;
namespace gl
{
void trace(const char *format, ...)
{
+#if !defined(ANGLE_DISABLE_TRACE)
if (trace_on)
{
if (format)
{
if (trace_on)
{
if (format)
{
- FILE *file = fopen(
"debug.txt"
, "a");
+ FILE *file = fopen(
TRACE_OUTPUT_FILE
, "a");
if (file)
{
if (file)
{
@@
-34,5
+39,6
@@
void trace(const char *format, ...)
}
}
}
}
}
}
+#endif // !defined(ANGLE_DISABLE_TRACE)
}
}
}
}