mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Silence GCC warning in ipa-kdb
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 <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
0aaee0a97f
commit
d749723a14
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user