[Android Q&A, Help & Troubleshooting] antonio8297:
hi at all,a question.

for build pure aosp and linaro gcc4.8 and -O3,needs a patch?because the build always fail.

this is an example

frameworks/base/core/jni/android_animation_PropertyValuesHolder.cpp:32:18: warning: unused parameter 'pvhClass' [-Wunused-parameter]
static jmethodID android_animation_PropertyValuesHolder_getIntMethod(
^
frameworks/base/core/jni/android_animation_PropertyValuesHolder.cpp:41:18: warning: unused parameter 'pvhClass' [-Wunused-parameter]
static jmethodID android_animation_PropertyValuesHolder_getFloatMethod(
^
frameworks/base/core/jni/android_animation_PropertyValuesHolder.cpp:50:13: warning: unused parameter 'pvhObject' [-Wunused-parameter]
static void android_animation_PropertyValuesHolder_callIntMethod(
^
frameworks/base/core/jni/android_animation_PropertyValuesHolder.cpp:56:13: warning: unused parameter 'pvhObject' [-Wunused-parameter]
static void android_animation_PropertyValuesHolder_callFloatMethod(
^
target thumb C: libcorkscrew <= system/core/libcorkscrew/demangle.c
target thumb C: libcorkscrew <= system/core/libcorkscrew/map_info.c
target thumb C: libcorkscrew <= system/core/libcorkscrew/ptrace.c
frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp: In function 'int android::readNetworkStatsDetail(JNIEnv*, jclass, jobject, jstring, jint)':
frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:84:41: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[32]' [-Wformat=]
&s.txBytes, &s.txPackets) == 9) {
^
frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp: At global scope:
frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:63:12: warning: unused parameter 'clazz' [-Wunused-parameter]
static int readNetworkStatsDetail(JNIEnv* env, jclass clazz, jobject stats,
^
frameworks/base/core/jni/com_android_internal_net_NetworkStatsFactory.cpp:63:12: warning: unused parameter 'limitUid' [-Wunused-parameter]
target thumb C: libcorkscrew <= system/core/libcorkscrew/symbol_table.c
target thumb C: libcorkscrew <= system/core/libcorkscrew/arch-arm/backtrace-arm.c
target thumb C: libcorkscrew <= system/core/libcorkscrew/arch-arm/ptrace-arm.c
target SharedLib: libz (out/target/product/maguro/obj/SHARED_LIBRARIES/libz_intermediates/LINKED/libz.so)
system/core/libcorkscrew/arch-arm/ptrace-arm.c: In function 'free_ptrace_map_info_data_arch':
system/core/libcorkscrew/arch-arm/ptrace-arm.c:72:49: error: unused parameter 'mi' [-Werror=unused-parameter]
void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) {
^
system/core/libcorkscrew/arch-arm/ptrace-arm.c:72:70: error: unused parameter 'data' [-Werror=unused-parameter]
void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) {
^
cc1: all warnings being treated as errors
make: *** [out/target/product/maguro/obj/SHARED_LIBRARIES/libcorkscrew_intermediates/arch-arm/ptrace-arm.o] Errore 1
make: *** Attesa per i processi non terminati....
system/core/libcorkscrew/arch-arm/backtrace-arm.c: In function 'unwind_backtrace_signal_arch':
system/core/libcorkscrew/arch-arm/backtrace-arm.c:555:49: error: unused parameter 'siginfo' [-Werror=unused-parameter]
ssize_t unwind_backtrace_signal_arch(siginfo_t* siginfo, void* sigcontext,
^
cc1: all warnings being treated as errors
make: *** [out/target/product/maguro/obj/SHARED_LIBRARIES/libcorkscrew_intermediates/arch-arm/backtrace-arm.o] Errore 1

thanks to all.