all warnings being treated as errors报错解决

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

你可能感兴趣的:(Linux,kernel学习)