base: add back libheimbase HEIMDAL_xxx_ATTRIBUTEs

Fix regression introduced in 62f83ad0 by adding HEIMDAL_NORETURN_ATTRIBUTE and
HEIMDAL_PRINTF_ATTRIBUTE to function definitions, so they will be included in
heimbase-protos.h.
This commit is contained in:
Luke Howard
2023-01-07 20:11:13 +11:00
parent 44e52a32b3
commit 4e449baa29
2 changed files with 7 additions and 0 deletions

View File

@@ -504,6 +504,8 @@ heim_base_once_f(heim_base_once_t *once, void *ctx, void (*func)(void *))
void
heim_abort(const char *fmt, ...)
HEIMDAL_NORETURN_ATTRIBUTE
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 1, 2))
{
va_list ap;
va_start(ap, fmt);
@@ -517,6 +519,8 @@ heim_abort(const char *fmt, ...)
void
heim_abortv(const char *fmt, va_list ap)
HEIMDAL_NORETURN_ATTRIBUTE
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 1, 0))
{
static char str[1024];