Commit 90a19604 authored by Ghislain MARY's avatar Ghislain MARY

Treat warnings as errors when compiling for Android.

parent f1e77dd8
......@@ -60,7 +60,8 @@ LOCAL_SRC_FILES := \
LOCAL_CFLAGS += \
-DORTP_INET6 \
-UHAVE_CONFIG_H \
-include ortp_AndroidConfig.h
-include ortp_AndroidConfig.h \
-Werror -Wall -Wno-error=strict-aliasing -Wuninitialized
ifeq ($(BUILD_ZRTP), 1)
......@@ -81,5 +82,7 @@ LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/build/android
LOCAL_LDLIBS += -lpthread
LOCAL_CPPFLAGS = $(LOCAL_CLFAGS)
LOCAL_CFLAGS += -Wdeclaration-after-statement
include $(BUILD_STATIC_LIBRARY)
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