红联Linux门户
Linux帮助

all warnings being treated as errors报错解决

发布时间:2016-08-07 10:09:18来源:linux网站作者:慢慢的燃烧
编译linux kernel3.10报错:all warnings being treated as errors
 
expects argument of type 'int *', but argument 3 has type 'uint16_t *' [-Werror=format]
cc1: all warnings being treated as errors
 
解决方法:在linux kernel根目录下:Makefile修改 622行
 
ifdef CONFIG_WERROR
KBUILD_CFLAGS += -Werror
endif
 
修改为:
ifdef CONFIG_WERROR
KBUILD_CFLAGS += #-Werror
endif
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23103.html