all warnings being treated as errors报错解决

来源:互联网 发布:c语言数据结构教程 编辑:程序博客网 时间:2024/05/21 07:59

编译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

0 0
原创粉丝点击