Error during compiling kernel (Werror=unused-but-set-variable)
I was trying to compile a kernel for my android phone then I got this:
what if I just remove/disable werror options from compiler,is that a good idea?so how to do that?
scripts/kconfig/conf -s arch/arm/Kconfig
SYMLINK include/asm -> include/asm-arm
make: `include/asm-arm/mach-types.h' is up to date.
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1542:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1962:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
In file included from include/linux/mempolicy.h:62:0,
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:416:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [init/main.o] Error 1
make: *** [init] Error 2
make: *** Waiting for unfinished jobs....
could you help me remove werror options?this is the toolchain I use: