summaryrefslogtreecommitdiffstats
path: root/ppapi/examples
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 02:17:37 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 02:17:37 +0000
commit532e568335ccd1ed21907b5012b5ead084530588 (patch)
tree3f59861c7528e3ab9be885b62bc5fe84d7eea78d /ppapi/examples
parentb5aa1420d953dd770798ef0a15bce2fc6c94cd3f (diff)
downloadchromium_src-532e568335ccd1ed21907b5012b5ead084530588.zip
chromium_src-532e568335ccd1ed21907b5012b5ead084530588.tar.gz
chromium_src-532e568335ccd1ed21907b5012b5ead084530588.tar.bz2
Uncomment PPAPI examples to prevent bit-rot.
BUG=none TEST=build all newly uncommented targets Review URL: http://codereview.chromium.org/7204017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89636 0039d316-1c4b-4281-b951-d872f2087c98
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,