]> git.saurik.com Git - apple/xnu.git/blobdiff - security/conf/Makefile.i386
xnu-1456.1.26.tar.gz
[apple/xnu.git] / security / conf / Makefile.i386
index b89fdd145bdcbc8a2152e852e75a5f97a4ce0336..7da8f08d61710ccdaa6f1c42a01e05587f91833b 100644 (file)
@@ -2,6 +2,16 @@
 #BEGIN Machine dependent Makefile fragment for i386
 ######################################################################
 
+# Enable -Werror for i386 builds
+CFLAGS+=$(WERROR)
+CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
+
+# Objects that don't compile cleanly:
+#OBJS_NO_WERROR =              \
+
+OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
+
+$(OBJS_WERROR):                WERROR=-Werror
 
 ######################################################################
 #END   Machine dependent Makefile fragment for i386