frameworks/native/opengl: Fix build with gcc 4.8
In gcc 4.8, the warning for unused parameters (such as JNIEnv* pointers in JNI functions that don't need it) is enabled by default - causing -Werror to break the build. Change-Id: Ib91721f2cb9912b79c2ac19b4210b1309b08304f Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
This commit is contained in:
parent
cd91024ca1
commit
c80fae6e85
|
@ -30,7 +30,7 @@ include $(CLEAR_VARS)
|
|||
# Optional tag would mean it doesn't get installed by default
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
|
||||
|
||||
LOCAL_SRC_FILES:= \
|
||||
gl_code.cpp
|
||||
|
|
|
@ -30,7 +30,7 @@ include $(CLEAR_VARS)
|
|||
# Optional tag would mean it doesn't get installed by default
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
|
||||
|
||||
LOCAL_SRC_FILES:= \
|
||||
gl_code.cpp
|
||||
|
|
|
@ -33,7 +33,7 @@ include $(CLEAR_VARS)
|
|||
# Optional tag would mean it doesn't get installed by default
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
|
||||
|
||||
LOCAL_SRC_FILES:= \
|
||||
gl_code.cpp
|
||||
|
|
|
@ -30,7 +30,7 @@ include $(CLEAR_VARS)
|
|||
# Optional tag would mean it doesn't get installed by default
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
|
||||
|
||||
LOCAL_SRC_FILES:= \
|
||||
gl_code.cpp
|
||||
|
|
Loading…
Reference in New Issue