From 6ee1554f3e71397588072ee0be739f4607d79847 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 3 Jan 2022 16:00:45 -0600 Subject: [PATCH] Ignore enum-conversion errors This is not a very good fix, though the warnings remain. Such errors can in principle be a problem because in C there is no standard enum sizing. In this case we have two enums with the same elements and so the same size, so it's clearly not a problem. --- kdc/Makefile.am | 2 ++ lib/asn1/Makefile.am | 2 ++ lib/gssapi/Makefile.am | 2 ++ lib/hdb/Makefile.am | 2 ++ lib/kafs/Makefile.am | 2 ++ lib/krb5/Makefile.am | 2 ++ 6 files changed, 12 insertions(+) diff --git a/kdc/Makefile.am b/kdc/Makefile.am index 544229708..5c75f5b61 100644 --- a/kdc/Makefile.am +++ b/kdc/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + AM_CPPFLAGS += $(INCLUDE_libintl) $(INCLUDE_openssl_crypto) -I$(srcdir)/../lib/krb5 lib_LTLIBRARIES = simple_csr_authorizer.la ipc_csr_authorizer.la \ diff --git a/lib/asn1/Makefile.am b/lib/asn1/Makefile.am index d6bf8432c..42c63521d 100644 --- a/lib/asn1/Makefile.am +++ b/lib/asn1/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + YFLAGS = -d -t AM_CPPFLAGS += $(ROKEN_RENAME) diff --git a/lib/gssapi/Makefile.am b/lib/gssapi/Makefile.am index ea26da2dc..cb525d05d 100644 --- a/lib/gssapi/Makefile.am +++ b/lib/gssapi/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + AUTOMAKE_OPTIONS = subdir-objects AM_CPPFLAGS += \ diff --git a/lib/hdb/Makefile.am b/lib/hdb/Makefile.am index 84071a79c..5dfc28e6e 100644 --- a/lib/hdb/Makefile.am +++ b/lib/hdb/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 AM_CPPFLAGS += $(INCLUDE_openldap) -DHDB_DB_DIR=\"$(DIR_hdbdir)\" AM_CPPFLAGS += -I$(srcdir)/../krb5 diff --git a/lib/kafs/Makefile.am b/lib/kafs/Makefile.am index dd23aef76..22c53ff8e 100644 --- a/lib/kafs/Makefile.am +++ b/lib/kafs/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + AM_CPPFLAGS += $(AFS_EXTRA_DEFS) $(ROKEN_RENAME) if KRB5 diff --git a/lib/krb5/Makefile.am b/lib/krb5/Makefile.am index 99171e727..a13c855a4 100644 --- a/lib/krb5/Makefile.am +++ b/lib/krb5/Makefile.am @@ -2,6 +2,8 @@ include $(top_srcdir)/Makefile.am.common +WFLAGS += -Wno-error=enum-conversion + AM_CPPFLAGS += -I../com_err -I$(srcdir)/../com_err $(INCLUDE_sqlite3) $(INCLUDE_libintl) $(INCLUDE_openssl_crypto) bin_PROGRAMS = verify_krb5_conf