summaryrefslogtreecommitdiffstats
path: root/ppapi/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/examples')
-rw-r--r--ppapi/examples/gles2/gles2.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc
index dc54d57..8c8ec91 100644
--- a/ppapi/examples/gles2/gles2.cc
+++ b/ppapi/examples/gles2/gles2.cc
@@ -18,6 +18,12 @@
#include "ppapi/examples/gles2/testdata.h"
#include "ppapi/lib/gl/include/GLES2/gl2.h"
+// Prevent "unused variable" warnings when building in Release mode.
+#ifdef NDEBUG
+#undef assert
+#define assert(expr) while (0 && (expr))
+#endif // NDEBUG
+
namespace {
class GLES2DemoInstance : public pp::Instance, public pp::Graphics3DClient_Dev,