Commit 8642a097 authored by Ghislain MARY's avatar Ghislain MARY

Treat warnings as errors when compiling for Android.

parent 36d8af7f
......@@ -228,8 +228,7 @@ LOCAL_CFLAGS += \
-include $(LOCAL_PATH)/../build/android/libmediastreamer2_AndroidConfig.h \
-DMS2_INTERNAL \
-DMS2_FILTERS \
-D_POSIX_SOURCE -Wall
-D_POSIX_SOURCE -Wall -Werror -Wno-error=strict-aliasing -Wuninitialized
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DUSE_HARDWARE_RATE=1
......@@ -326,6 +325,8 @@ ifeq ($(BUILD_MEDIASTREAMER2_SDK), 1)
else
include $(BUILD_STATIC_LIBRARY)
endif
LOCAL_CPPFLAGS = $(LOCAL_CLFAGS)
LOCAL_CFLAGS += -Wdeclaration-after-statement
$(call import-module,android/cpufeatures)
......@@ -28,8 +28,8 @@ static JavaVM *ms2_vm=NULL;
static pthread_key_t jnienv_key;
void _android_key_cleanup(void *data){
ms_message("Thread end, detaching jvm from current thread");
JNIEnv* env=(JNIEnv*)pthread_getspecific(jnienv_key);
ms_message("Thread end, detaching jvm from current thread");
if (env != NULL) {
(*ms2_vm)->DetachCurrentThread(ms2_vm);
pthread_setspecific(jnienv_key,NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment