Fix some compile warnings

1.From GNU compiler extension,Add attribute '__attribute__((unused))' in front of unused parameter to avoid compile warning.

2.By the same way, Add attribute to avoid compile warning.

Test: mmm device/generic/goldfish-opengl.

Change-Id: I06cd5b6fbc2cf6b2387c021b0ceb770a6ba8c568
Signed-off-by: jiayi Li <lijiayi@eswincomputing.com>
diff --git a/shared/OpenglCodecCommon/GLSharedGroup.cpp b/shared/OpenglCodecCommon/GLSharedGroup.cpp
index 30a1d4c..5d63c9d 100755
--- a/shared/OpenglCodecCommon/GLSharedGroup.cpp
+++ b/shared/OpenglCodecCommon/GLSharedGroup.cpp
@@ -558,7 +558,7 @@
 
 void GLSharedGroup::setProgramAttribInfo(
     GLuint program, GLuint index, GLint attribLoc,
-    GLint size, GLenum type, const char* name) {
+    GLint size, GLenum type, __attribute__((unused)) const char* name) {
 
     AutoLock<Lock> _lock(m_lock);
 
diff --git a/shared/OpenglCodecCommon/glUtils.cpp b/shared/OpenglCodecCommon/glUtils.cpp
index fb96686..36eba6a 100644
--- a/shared/OpenglCodecCommon/glUtils.cpp
+++ b/shared/OpenglCodecCommon/glUtils.cpp
@@ -1117,7 +1117,7 @@
     return 4;
 }
 
-bool colorRenderableFormat(GLint internalformat, GLenum texturetype, int majorVersion, int minorVersion, bool hasColorBufferFloatExtension, bool hasColorBufferHalfFloatExtension) {
+bool colorRenderableFormat(GLint internalformat, GLenum texturetype, int majorVersion, __attribute__((unused)) int minorVersion, bool hasColorBufferFloatExtension, bool hasColorBufferHalfFloatExtension) {
     switch (internalformat) {
         case GL_RGB:
         case GL_RGBA: