天天看點

以C99的方式編譯核心子產品

obj-m := driver1.o
ccflags-y := -std=gnu99 -Wno-declaration-after-statement
           

Makefile 中加入

ccflags-y := -std=gnu99 -Wno-declaration-after-statement

繼續閱讀