bsd.sys.mk: Add -Wmissing-include-dirs to WARNS >= 1.
authorSascha Wildner <saw@online.de>
Mon, 1 Apr 2013 13:47:21 +0000 (15:47 +0200)
committerSascha Wildner <saw@online.de>
Mon, 1 Apr 2013 13:47:21 +0000 (15:47 +0200)
It ensures that all directories passed with -I<dir> actually exist.

share/mk/bsd.sys.mk

index 3584a1c..60b0028 100644 (file)
@@ -23,7 +23,7 @@ CFLAGS                += -std=${CSTD}
 .if !defined(NO_WARNS)
 . if defined(WARNS)
 .  if ${WARNS} >= 1
-CWARNFLAGS     +=      -Wsystem-headers
+CWARNFLAGS     +=      -Wmissing-include-dirs -Wsystem-headers
 .   if !defined(NO_WERROR) && (${CCVER} == "gcc44" || ${CCVER} == "gcc47")
 CWARNFLAGS     +=      -Werror
 .   endif