Commit 9dd1d963 authored by Ghislain MARY's avatar Ghislain MARY

Activate -Wuninitialized option when compiling for Android.

parent 7255bc7a
......@@ -228,7 +228,7 @@ LOCAL_CFLAGS += \
-include $(LOCAL_PATH)/../build/android/libmediastreamer2_AndroidConfig.h \
-DMS2_INTERNAL \
-DMS2_FILTERS \
-D_POSIX_SOURCE -Wall -Werror -Wno-error=strict-aliasing -Wno-error=uninitialized
-D_POSIX_SOURCE -Wall -Werror -Wno-error=strict-aliasing -Wuninitialized
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DUSE_HARDWARE_RATE=1
......
......@@ -123,13 +123,13 @@ static inline void yuv2rgb_4x2(const uint8_t *y1, const uint8_t *y2, const uint8
static int32_t yuvmax[4]={255<<13,255<<13,255<<13,255<<13};
static inline void yuv2rgb_4x2(const uint8_t *y1, const uint8_t *y2, const uint8_t *u, const uint8_t *v, int16_t *r1, int16_t *g1, int16_t *b1, int16_t *r2, int16_t *g2, int16_t *b2){
int32x4_t ry1;
int32x4_t ry2;
int32x4_t rvug;
int32x4_t rvr;
int32x4_t rub;
int32x4_t rr1,rg1,rb1,rr2,rg2,rb2;
int32x4_t max;
int32x4_t ry1={0};
int32x4_t ry2={0};
int32x4_t rvug={0};
int32x4_t rvr={0};
int32x4_t rub={0};
int32x4_t rr1={0},rg1={0},rb1={0},rr2={0},rg2={0},rb2={0};
int32x4_t max={0};
LOAD_Y_PREMULTS(0)
LOAD_Y_PREMULTS(1)
......
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