Linux之kernel编译去掉:-Werror=format=

# git diff  kernel/Makefile
KBUILD_AFLAGS   := -D__ASSEMBLY__
KBUILD_CFLAGS   := -Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs \
		   -fno-strict-aliasing -fno-common -fshort-wchar \
		   -Werror-implicit-function-declaration \
		   -Wno-format-security \
+		   -fno-delete-null-pointer-checks \
+		   -w \
		   -std=gnu89
KBUILD_CPPFLAGS := -D__KERNEL__

猜你喜欢

转载自blog.csdn.net/u010164190/article/details/124933298