[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
i'm building vaniraosp for aries(xiaomi mi2) and I get this error:

device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:109:1: warning: when initialized here [-Wreorder]
AudioHardwareALSA::AudioHardwareALSA() :
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:156:19: warning: converting to non-pointer type 'pthread_t {aka long int}' from NULL [-Wconversion-null]
mExtOutThread = NULL;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:352:18: warning: ordered comparison of pointer with integer zero [-Wextra]
if (mUcMgr < 0) {
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardwareALSA::setParameters(const android::String8&)':
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:866:38: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
if (param.getInt(key, (int &)call_state) == NO_ERROR) {
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp: In member function 'virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareALSA::openOutputStream(uint32_t, int*, uint32_t*, uint32_t*, android::status_t*)':
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:1459:36: warning: missing initializer for member 'EDID_AUDIO_INFO::nSpeakerAllocation' [-Wmissing-field-initializers]
EDID_AUDIO_INFO info = { 0 };
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:1459:36: warning: missing initializer for member 'EDID_AUDIO_INFO::AudioBlocksArray' [-Wmissing-field-initializers]
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:1459:36: warning: missing initializer for member 'EDID_AUDIO_INFO::channelMap' [-Wmissing-field-initializers]
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:1459:36: warning: missing initializer for member 'EDID_AUDIO_INFO::channelAllocation' [-Wmissing-field-initializers]
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp: In member function 'char* android_audio_legacy::AudioHardwareALSA::getUcmVerbForVSID(uint32_t)':
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2407:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
verb = SND_USE_CASE_VERB_VOLTE;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2411:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
verb = SND_USE_CASE_VERB_VOICE2;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2415:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
verb = SND_USE_CASE_VERB_VOICECALL;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp: In member function 'char* android_audio_legacy::AudioHardwareALSA::getUcmModForVSID(uint32_t)':
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2432:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mod = SND_USE_CASE_MOD_PLAY_VOLTE;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2436:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mod = SND_USE_CASE_MOD_PLAY_VOICE2;
^
device/xiaomi/aries/alsa_sound/AudioHardwareALSA.cpp:2440:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mod = SND_USE_CASE_MOD_PLAY_VOICE;
^
cc1plus: some warnings being treated as errors
make: *** [/home/w4tch0ut/vanir/out/target/product/aries/obj/SHARED_LIBRARIES/audio.primary.aries_intermediates/AudioHardwareALSA.o] Error 1
make: *** Waiting for unfinished jobs....

Help needed