From d749723a144fbd0d810de5d1f61a5a85e998facf Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 23 Feb 2018 10:14:33 +0100 Subject: [PATCH] Silence GCC warning in ipa-kdb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ipadb_free() and ipadb_alloc() functions are only used with KRB5_KDB_DAL_MAJOR_VERSION 5. ipa_kdb.c:639:13: warning: ‘ipadb_free’ defined but not used [-Wunused-function] ipa_kdb.c:634:14: warning: ‘ipadb_alloc’ defined but not used [-Wunused-function] Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- daemons/ipa-kdb/ipa_kdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemons/ipa-kdb/ipa_kdb.c b/daemons/ipa-kdb/ipa_kdb.c index 222900ae7..00c732624 100644 --- a/daemons/ipa-kdb/ipa_kdb.c +++ b/daemons/ipa-kdb/ipa_kdb.c @@ -631,6 +631,7 @@ static krb5_error_code ipadb_get_age(krb5_context kcontext, return 0; } +#if KRB5_KDB_DAL_MAJOR_VERSION == 5 static void *ipadb_alloc(krb5_context context, void *ptr, size_t size) { return realloc(ptr, size); @@ -640,6 +641,7 @@ static void ipadb_free(krb5_context context, void *ptr) { free(ptr); } +#endif /* KDB Virtual Table */