am ce23ecff: Merge "Frameworks/base: Wall Werror in native/graphics"
* commit 'ce23ecffea9ec4ebe97d91a59e1997aaa77562c9': Frameworks/base: Wall Werror in native/graphics
This commit is contained in:
@@ -28,5 +28,7 @@ LOCAL_C_INCLUDES += \
|
|||||||
|
|
||||||
LOCAL_MODULE:= libjnigraphics
|
LOCAL_MODULE:= libjnigraphics
|
||||||
|
|
||||||
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <android/bitmap.h>
|
#include <android/bitmap.h>
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#include <GraphicsJNI.h>
|
#include <GraphicsJNI.h>
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
|
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
|
||||||
AndroidBitmapInfo* info) {
|
AndroidBitmapInfo* info) {
|
||||||
|
|||||||
Reference in New Issue
Block a user