summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jesse Hall <jessehall@google.com> 2014-05-13 21:13:14 -0700
committer Jesse Hall <jessehall@google.com> 2014-05-17 19:32:10 -0700
commitbbbddb83bbd3ca2032294b55c91b1023acc927ac (patch)
treee43bc79e12bd767367e7a035af78aa00c9b4ea96
parent4c0596f4cc7d3a0bbbe5862cb38585a58ef4d0a3 (diff)
Disable warnings when generating GL wrappers
Bug: 15028495 Change-Id: Ic0c974e868d05632a06748c90cedbdd409ce2aa8
-rw-r--r--opengl/libs/GLES2/gl2.cpp2
-rw-r--r--opengl/libs/GLES_CM/gl.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/GLES2/gl2.cpp b/opengl/libs/GLES2/gl2.cpp
index dea5b75722..fa8a228761 100644
--- a/opengl/libs/GLES2/gl2.cpp
+++ b/opengl/libs/GLES2/gl2.cpp
@@ -107,8 +107,10 @@ using namespace android;
extern "C" {
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "gl2_api.in"
#include "gl2ext_api.in"
+#pragma GCC diagnostic warning "-Wunused-parameter"
}
#undef API_ENTRY
diff --git a/opengl/libs/GLES_CM/gl.cpp b/opengl/libs/GLES_CM/gl.cpp
index 893577b725..e5de4a765b 100644
--- a/opengl/libs/GLES_CM/gl.cpp
+++ b/opengl/libs/GLES_CM/gl.cpp
@@ -158,8 +158,10 @@ GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type,
extern "C" {
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "gl_api.in"
#include "glext_api.in"
+#pragma GCC diagnostic warning "-Wunused-parameter"
}
#undef API_ENTRY