frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member function ‘static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’:
frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_export_foreach.o] Error 1
ics compile fail!
# vi frameworks/compile/slang/Android.mk
在打开的makefile文件中按照下面更改:
-----local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
++++local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter