From bbbddb83bbd3ca2032294b55c91b1023acc927ac Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Tue, 13 May 2014 21:13:14 -0700 Subject: [PATCH] Disable warnings when generating GL wrappers Bug: 15028495 Change-Id: Ic0c974e868d05632a06748c90cedbdd409ce2aa8 --- opengl/libs/GLES2/gl2.cpp | 2 ++ opengl/libs/GLES_CM/gl.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/opengl/libs/GLES2/gl2.cpp b/opengl/libs/GLES2/gl2.cpp index dea5b7572..fa8a22876 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 893577b72..e5de4a765 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