Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2021 10:27:37 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 372c89d4a49d - stable/13 - kerberos5: Silence compiler warnings
Message-ID:  <202103171027.12HARbMp095922@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=372c89d4a49d085a09692057f0fe40e816d4d7ae

commit 372c89d4a49d085a09692057f0fe40e816d4d7ae
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-01-27 10:41:57 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-17 09:53:08 +0000

    kerberos5: Silence compiler warnings
    
    Building the kerberos5 subdirectory currently produces lots of warnings.
    Since there are many instances of these warnings and it's contrib code,
    this change silences the warnings instead of fixing them.
    
    Reviewed By:    jhb, cy, bjk
    Differential Revision: https://reviews.freebsd.org/D28025
    
    (cherry picked from commit 4f009328a2477f5f1c682629fc5708498b7c689f)
---
 kerberos5/Makefile.inc         | 3 +--
 kerberos5/libexec/kcm/Makefile | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/kerberos5/Makefile.inc b/kerberos5/Makefile.inc
index 5ca8f73faf9b..0d52313977ce 100644
--- a/kerberos5/Makefile.inc
+++ b/kerberos5/Makefile.inc
@@ -9,8 +9,7 @@ KRB5DIR=	${SRCTOP}/crypto/heimdal
 CFLAGS+=	-DHAVE_CONFIG_H -I${.CURDIR:H:H}/include
 
 WARNS?=		1
-CWARNFLAGS.clang+=	-Wno-error=absolute-value
-CWARNFLAGS+=	-Wno-error=deprecated-declarations
+CWARNFLAGS.clang+=	-Wno-absolute-value
 
 .if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT)
 OPENLDAPBASE?=	/usr/local
diff --git a/kerberos5/libexec/kcm/Makefile b/kerberos5/libexec/kcm/Makefile
index fa7a0cfce9cf..35165ef9e424 100644
--- a/kerberos5/libexec/kcm/Makefile
+++ b/kerberos5/libexec/kcm/Makefile
@@ -19,6 +19,8 @@ SRCS=	acl.c \
 
 CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
 	-I${KRB5DIR}/kcm -I${KRB5DIR}/lib/ipc ${LDAPCFLAGS}
+# Avoid errors for using deprecated krb5_* APIs
+CFLAGS+="-DKRB5_DEPRECATED_FUNCTION(X)="
 LIBADD=	krb5 roken heimntlm heimipcs crypto
 DPADD=	${LDAPDPADD}
 LDADD=	${LIBVERS} ${LDAPLDADD}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103171027.12HARbMp095922>