瀏覽代碼

[LibOS] Enable -Wnull-dereference

Isaku Yamahata 6 年之前
父節點
當前提交
209bb2fd83
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      LibOS/shim/src/Makefile

+ 1 - 0
LibOS/shim/src/Makefile

@@ -12,6 +12,7 @@ OMIT_FRAME_POINTER = no
 CFLAGS	= -Wall -fPIC -std=c11 -Winline -Wwrite-strings \
 CFLAGS	= -Wall -fPIC -std=c11 -Winline -Wwrite-strings \
 	  -fmerge-all-constants -Wstrict-prototypes \
 	  -fmerge-all-constants -Wstrict-prototypes \
 	  -Werror=implicit-function-declaration \
 	  -Werror=implicit-function-declaration \
+	  $(cc-option, -Wnull-dereference) \
 	  -fno-stack-protector -fno-builtin -Wno-inline \
 	  -fno-stack-protector -fno-builtin -Wno-inline \
 	  -I../include -I../../../Pal/lib -I../../../Pal/include/pal
 	  -I../include -I../../../Pal/lib -I../../../Pal/include/pal