Browse Source

[LibOS] Enable -Wnull-dereference

Isaku Yamahata 5 years ago
parent
commit
209bb2fd83
1 changed files with 1 additions and 0 deletions
  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 \
 	  -fmerge-all-constants -Wstrict-prototypes \
 	  -Werror=implicit-function-declaration \
+	  $(cc-option, -Wnull-dereference) \
 	  -fno-stack-protector -fno-builtin -Wno-inline \
 	  -I../include -I../../../Pal/lib -I../../../Pal/include/pal