components/krb5/Makefile
changeset 6987 e80772ec96e1
parent 6978 14cbeb78966a
child 7504 49f3285e13a3
--- a/components/krb5/Makefile	Tue Sep 27 14:20:45 2016 -0700
+++ b/components/krb5/Makefile	Tue Sep 27 15:08:33 2016 -0500
@@ -62,6 +62,20 @@
 
 # We need to enable large file support and build PIC for our shared libraries
 CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
+CFLAGS += -errtags=yes -errwarn=%all
+CFLAGS += -errwarn=no%E_STATEMENT_NOT_REACHED
+CFLAGS += -errwarn=no%E_NO_IMPLICIT_DECL_ALLOWED
+CFLAGS += -errwarn=no%E_EMPTY_TRANSLATION_UNIT
+CFLAGS += -errwarn=no%E_EMPTY_INITIALIZER
+CFLAGS += -errwarn=no%E_EMPTY_DECLARATION
+CFLAGS += -errwarn=no%E_ENUM_VAL_OVERFLOWS_INT_MAX
+CFLAGS += -errwarn=no%E_DEPRECATED_ATT
+CFLAGS += -errwarn=no%E_INIT_SIGN_EXTEND
+# XXX really E_ASSIGNMENT_TYPE_MISMATCH should not be treated as a warning but
+# making this an error would require patching MIT code which I do not want to
+# do at this moment.  Making this an error should be revisited after rebasing
+# to MIT v1.15.
+CFLAGS += -errwarn=no%E_ASSIGNMENT_TYPE_MISMATCH
 
 # Include openldap headers instead of obsolete mozilla ldap headers.
 CPPFLAGS += -I$(USRINCDIR)/openldap