diff options
| -rw-r--r-- | opengl/libs/Android.bp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/opengl/libs/Android.bp b/opengl/libs/Android.bp index 59424cd5c9..63c79dec01 100644 --- a/opengl/libs/Android.bp +++ b/opengl/libs/Android.bp @@ -3,6 +3,7 @@ cc_library { name: "libETC1", srcs: ["ETC1/etc1.cpp"], host_supported: true, + cflags: ["-Wall", "-Werror"], target: { android: { @@ -56,6 +57,9 @@ cc_defaults { "-DGL_GLEXT_PROTOTYPES", "-DEGL_EGLEXT_PROTOTYPES", "-fvisibility=hidden", + "-Wall", + "-Werror", + "-Wno-unused-variable", ], shared_libs: [ // ***** DO NOT ADD NEW DEPENDENCIES HERE ***** @@ -86,6 +90,11 @@ cc_defaults { defaults: ["gl_libs_defaults"], cflags: [ "-DLOG_TAG=\"libEGL\"", + "-Wall", + "-Werror", + "-Wno-error=deprecated-register", + "-Wno-error=unknown-attributes", + "-Wno-unused-variable", ], shared_libs: [ // ***** DO NOT ADD NEW DEPENDENCIES HERE ***** |