Index: src/gpu/gr_unittests.cpp |
=================================================================== |
--- src/gpu/gr_unittests.cpp (revision 7997) |
+++ src/gpu/gr_unittests.cpp (working copy) |
@@ -17,6 +17,7 @@ |
// If we aren't inheriting these as #defines from elsewhere, |
// clang demands they be declared before we #include the template |
// that relies on them. |
+#if GR_DEBUG |
static bool LT(const int& elem, int value) { |
return elem < value; |
} |
@@ -39,6 +40,7 @@ |
} |
} |
} |
+#endif |
// bogus empty class for GrBinHashKey |
class BogusEntry {}; |
@@ -72,7 +74,7 @@ |
void gr_run_unittests() { |
- test_bsearch(); |
+ GR_DEBUGCODE(test_bsearch();) |
test_binHashKey(); |
GrRedBlackTree<int>::UnitTest(); |
GrDrawState::VertexAttributesUnitTest(); |