Use __attribute__ ((__name__)) form
Protect against macros named noreturn and so on.
This commit is contained in:

committed by
Viktor Dukhovni

parent
31896397d7
commit
6a0f45c4d7
2
NEWS
2
NEWS
@@ -233,7 +233,7 @@ Release Notes - Heimdal - Version Heimdal 1.3
|
||||
|
||||
- Support for settin friendly name on credential caches
|
||||
- Move to using doxygen to generate documentation.
|
||||
- Sprinkling __attribute__((depricated)) for old function to be removed
|
||||
- Sprinkling __attribute__((__deprecated__)) for old function to be removed
|
||||
- Support to export LAST-REQUST information in AS-REQ
|
||||
- Support for client deferrals in in AS-REQ
|
||||
- Add seek support for krb5_storage.
|
||||
|
@@ -68,13 +68,13 @@ RCSID("$Id$");
|
||||
#endif
|
||||
|
||||
static void
|
||||
try_signed(FILE *f, int len) __attribute__ ((unused));
|
||||
try_signed(FILE *f, int len) __attribute__ ((__unused__));
|
||||
|
||||
static void
|
||||
try_unsigned(FILE *f, int len) __attribute__ ((unused));
|
||||
try_unsigned(FILE *f, int len) __attribute__ ((__unused__));
|
||||
|
||||
static int
|
||||
print_bt(FILE *f, int flag) __attribute__ ((unused));
|
||||
print_bt(FILE *f, int flag) __attribute__ ((__unused__));
|
||||
|
||||
static void
|
||||
try_signed(FILE *f, int len)
|
||||
@@ -262,7 +262,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fprintf(f, "#ifndef HEIMDAL_DEPRECATED\n");
|
||||
fprintf(f, "#if __has_extension(deprecated) || KRB5TYPES_REQUIRE_GNUC(3,1,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_DEPRECATED __attribute__((deprecated))\n");
|
||||
fprintf(f, "#define HEIMDAL_DEPRECATED __attribute__ ((__deprecated__))\n");
|
||||
fprintf(f, "#elif defined(_MSC_VER) && (_MSC_VER>1200)\n");
|
||||
fprintf(f, "#define HEIMDAL_DEPRECATED __declspec(deprecated)\n");
|
||||
fprintf(f, "#else\n");
|
||||
@@ -272,7 +272,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fprintf(f, "#ifndef HEIMDAL_PRINTF_ATTRIBUTE\n");
|
||||
fprintf(f, "#if __has_extension(format) || KRB5TYPES_REQUIRE_GNUC(3,1,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x))\n");
|
||||
fprintf(f, "#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__ ((__format__ x))\n");
|
||||
fprintf(f, "#else\n");
|
||||
fprintf(f, "#define HEIMDAL_PRINTF_ATTRIBUTE(x)\n");
|
||||
fprintf(f, "#endif\n");
|
||||
@@ -280,7 +280,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fprintf(f, "#ifndef HEIMDAL_NORETURN_ATTRIBUTE\n");
|
||||
fprintf(f, "#if __has_extension(noreturn) || KRB5TYPES_REQUIRE_GNUC(3,1,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))\n");
|
||||
fprintf(f, "#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__ ((__noreturn__))\n");
|
||||
fprintf(f, "#else\n");
|
||||
fprintf(f, "#define HEIMDAL_NORETURN_ATTRIBUTE\n");
|
||||
fprintf(f, "#endif\n");
|
||||
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fprintf(f, "#ifndef HEIMDAL_UNUSED_ATTRIBUTE\n");
|
||||
fprintf(f, "#if __has_extension(unused) || KRB5TYPES_REQUIRE_GNUC(3,1,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_UNUSED_ATTRIBUTE __attribute__((unused))\n");
|
||||
fprintf(f, "#define HEIMDAL_UNUSED_ATTRIBUTE __attribute__ ((__unused__))\n");
|
||||
fprintf(f, "#else\n");
|
||||
fprintf(f, "#define HEIMDAL_UNUSED_ATTRIBUTE\n");
|
||||
fprintf(f, "#endif\n");
|
||||
@@ -296,7 +296,7 @@ int main(int argc, char **argv)
|
||||
|
||||
fprintf(f, "#ifndef HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE\n");
|
||||
fprintf(f, "#if __has_extension(warn_unused_result) || KRB5TYPES_REQUIRE_GNUC(3,3,0)\n");
|
||||
fprintf(f, "#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((warn_unused_result))\n");
|
||||
fprintf(f, "#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__ ((__warn_unused_result__))\n");
|
||||
fprintf(f, "#else\n");
|
||||
fprintf(f, "#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE\n");
|
||||
fprintf(f, "#endif\n");
|
||||
|
@@ -24,7 +24,7 @@ typedef ssize_t krb5_ssize_t;
|
||||
|
||||
#ifndef HEIMDAL_DEPRECATED
|
||||
#if __has_extension(deprecated) || KRB5TYPES_REQUIRE_GNUC(3,1,0)
|
||||
#define HEIMDAL_DEPRECATED __attribute__((deprecated))
|
||||
#define HEIMDAL_DEPRECATED __attribute__ ((__deprecated__))
|
||||
#elif defined(_MSC_VER) && (_MSC_VER>1200)
|
||||
#define HEIMDAL_DEPRECATED __declspec(deprecated)
|
||||
#else
|
||||
@@ -34,7 +34,7 @@ typedef ssize_t krb5_ssize_t;
|
||||
|
||||
#ifndef HEIMDAL_PRINTF_ATTRIBUTE
|
||||
#if __has_extension(format) || KRB5TYPES_REQUIRE_GNUC(3,1,0)
|
||||
#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x))
|
||||
#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__ ((__format__ x))
|
||||
#else
|
||||
#define HEIMDAL_PRINTF_ATTRIBUTE(x)
|
||||
#endif
|
||||
@@ -42,7 +42,7 @@ typedef ssize_t krb5_ssize_t;
|
||||
|
||||
#ifndef HEIMDAL_NORETURN_ATTRIBUTE
|
||||
#if __has_extension(noreturn) || KRB5TYPES_REQUIRE_GNUC(3,1,0)
|
||||
#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))
|
||||
#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__ ((__noreturn__))
|
||||
#else
|
||||
#define HEIMDAL_NORETURN_ATTRIBUTE
|
||||
#endif
|
||||
@@ -50,7 +50,7 @@ typedef ssize_t krb5_ssize_t;
|
||||
|
||||
#ifndef HEIMDAL_UNUSED_ATTRIBUTE
|
||||
#if __has_extension(unused) || KRB5TYPES_REQUIRE_GNUC(3,1,0)
|
||||
#define HEIMDAL_UNUSED_ATTRIBUTE __attribute__((unused))
|
||||
#define HEIMDAL_UNUSED_ATTRIBUTE __attribute__ ((__unused__))
|
||||
#else
|
||||
#define HEIMDAL_UNUSED_ATTRIBUTE
|
||||
#endif
|
||||
@@ -58,7 +58,7 @@ typedef ssize_t krb5_ssize_t;
|
||||
|
||||
#ifndef HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
|
||||
#if __has_extension(__warn_unused_result__) || KRB5TYPES_REQUIRE_GNUC(3,3,0)
|
||||
#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((__warn_unused_result__))
|
||||
#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__ ((__warn_unused_result__))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -260,13 +260,13 @@ struct tlist {
|
||||
|
||||
ASN1_TAILQ_HEAD(tlisthead, tlist);
|
||||
|
||||
static void tlist_header(struct tlist *, const char *, ...) __attribute__((__format__(__printf__, 2, 3)));
|
||||
static void tlist_header(struct tlist *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
static struct template *
|
||||
add_line(struct templatehead *, const char *, ...) __attribute__((__format__(__printf__, 2, 3)));
|
||||
add_line(struct templatehead *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
static int tlist_cmp(const struct tlist *, const struct tlist *);
|
||||
|
||||
static void add_line_pointer(struct templatehead *, const char *, const char *, const char *, ...)
|
||||
__attribute__((__format__(__printf__, 4, 5)));
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)));
|
||||
|
||||
|
||||
static struct tlisthead tlistmaster = ASN1_TAILQ_HEAD_INITIALIZER(tlistmaster);
|
||||
|
@@ -114,12 +114,12 @@ heim_base_once_f(heim_base_once_t *, void *, void (*)(void *));
|
||||
void
|
||||
heim_abort(const char *fmt, ...)
|
||||
HEIMDAL_NORETURN_ATTRIBUTE
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((printf, 1, 2));
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 1, 2));
|
||||
|
||||
void
|
||||
heim_abortv(const char *fmt, va_list ap)
|
||||
HEIMDAL_NORETURN_ATTRIBUTE
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((printf, 1, 0));
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 1, 0));
|
||||
|
||||
#define heim_assert(e,t) \
|
||||
(heim_builtin_expect(!(e), 0) ? heim_abort(t ":" #e) : (void)0)
|
||||
@@ -220,13 +220,13 @@ typedef struct heim_error * heim_error_t;
|
||||
heim_error_t heim_error_create_enomem(void);
|
||||
|
||||
heim_error_t heim_error_create(int, const char *, ...)
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((printf, 2, 3));
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 2, 3));
|
||||
|
||||
void heim_error_create_opt(heim_error_t *error, int error_code, const char *fmt, ...)
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((printf, 3, 4));
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 3, 4));
|
||||
|
||||
heim_error_t heim_error_createv(int, const char *, va_list)
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((printf, 2, 0));
|
||||
HEIMDAL_PRINTF_ATTRIBUTE((__printf__, 2, 0));
|
||||
|
||||
heim_string_t heim_error_copy_string(heim_error_t);
|
||||
int heim_error_get_code(heim_error_t);
|
||||
|
@@ -70,7 +70,7 @@ init_error_table(const char **msgs, long base, int count)
|
||||
|
||||
static void KRB5_CALLCONV
|
||||
default_proc (const char *whoami, long code, const char *fmt, va_list args)
|
||||
__attribute__((__format__(__printf__, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
|
||||
static void KRB5_CALLCONV
|
||||
default_proc (const char *whoami, long code, const char *fmt, va_list args)
|
||||
|
@@ -55,11 +55,11 @@ init_error_table (const char**, long, int);
|
||||
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
com_err_va (const char *, long, const char *, va_list)
|
||||
__attribute__((format(printf, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
com_err (const char *, long, const char *, ...)
|
||||
__attribute__((format(printf, 3, 4)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)));
|
||||
|
||||
KRB5_LIB_FUNCTION errf KRB5_LIB_CALL
|
||||
set_com_err_hook (errf);
|
||||
|
@@ -34,6 +34,6 @@
|
||||
/* $Id$ */
|
||||
|
||||
void _lex_error_message (const char *, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 2)));
|
||||
|
||||
int yylex(void);
|
||||
|
@@ -3404,7 +3404,7 @@ hx509_cert_binary(hx509_context context, hx509_cert c, heim_octet_string *os)
|
||||
|
||||
void
|
||||
_hx509_abort(const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 1, 2)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 1, 2)))
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
|
@@ -592,7 +592,7 @@ static void
|
||||
slave_status(krb5_context context,
|
||||
const char *file,
|
||||
const char *status, ...)
|
||||
__attribute__ ((format (printf, 3, 4)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)));
|
||||
|
||||
|
||||
static void
|
||||
|
@@ -40,7 +40,7 @@
|
||||
static void
|
||||
str2data (krb5_data *d,
|
||||
const char *fmt,
|
||||
...) __attribute__ ((format (printf, 2, 3)));
|
||||
...) __attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
|
||||
static void
|
||||
str2data (krb5_data *d,
|
||||
|
@@ -470,7 +470,7 @@ krb5_free_error_string(krb5_context context, char *str)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_set_error_string(krb5_context context, const char *fmt, ...)
|
||||
__attribute__((format (printf, 2, 3)))
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)))
|
||||
KRB5_DEPRECATED_FUNCTION("Use X instead")
|
||||
{
|
||||
va_list ap;
|
||||
@@ -498,7 +498,7 @@ krb5_set_error_string(krb5_context context, const char *fmt, ...)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_vset_error_string(krb5_context context, const char *fmt, va_list args)
|
||||
__attribute__ ((format (printf, 2, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 2, 0)))
|
||||
KRB5_DEPRECATED_FUNCTION("Use X instead")
|
||||
{
|
||||
krb5_vset_error_message(context, 0, fmt, args);
|
||||
|
@@ -72,7 +72,7 @@ krb5_clear_error_message(krb5_context context)
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
krb5_set_error_message(krb5_context context, krb5_error_code ret,
|
||||
const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 4)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)))
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
@@ -98,7 +98,7 @@ krb5_set_error_message(krb5_context context, krb5_error_code ret,
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
krb5_vset_error_message (krb5_context context, krb5_error_code ret,
|
||||
const char *fmt, va_list args)
|
||||
__attribute__ ((format (printf, 3, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)))
|
||||
{
|
||||
int r;
|
||||
|
||||
@@ -136,7 +136,7 @@ krb5_vset_error_message (krb5_context context, krb5_error_code ret,
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
krb5_prepend_error_message(krb5_context context, krb5_error_code ret,
|
||||
const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 4)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)))
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
@@ -161,7 +161,7 @@ krb5_prepend_error_message(krb5_context context, krb5_error_code ret,
|
||||
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
|
||||
krb5_vprepend_error_message(krb5_context context, krb5_error_code ret,
|
||||
const char *fmt, va_list args)
|
||||
__attribute__ ((format (printf, 3, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)))
|
||||
{
|
||||
char *str = NULL, *str2 = NULL;
|
||||
|
||||
|
@@ -411,7 +411,7 @@ krb5_vlog_msg(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
__attribute__((format (printf, 5, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 5, 0)))
|
||||
{
|
||||
|
||||
char *msg = NULL;
|
||||
@@ -449,7 +449,7 @@ krb5_vlog(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
__attribute__((format (printf, 4, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 4, 0)))
|
||||
{
|
||||
return krb5_vlog_msg(context, fac, NULL, level, fmt, ap);
|
||||
}
|
||||
@@ -461,7 +461,7 @@ krb5_log_msg(krb5_context context,
|
||||
char **reply,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 5, 6)))
|
||||
__attribute__ ((__format__ (__printf__, 5, 6)))
|
||||
{
|
||||
va_list ap;
|
||||
krb5_error_code ret;
|
||||
@@ -479,7 +479,7 @@ krb5_log(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 4, 5)))
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)))
|
||||
{
|
||||
va_list ap;
|
||||
krb5_error_code ret;
|
||||
@@ -495,7 +495,7 @@ _krb5_debug(krb5_context context,
|
||||
int level,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__((format (printf, 3, 4)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)))
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
@@ -64,7 +64,7 @@ pk_copy_error(krb5_context context,
|
||||
int hxret,
|
||||
const char *fmt,
|
||||
...)
|
||||
__attribute__ ((format (printf, 4, 5)));
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)));
|
||||
|
||||
/*
|
||||
*
|
||||
|
@@ -308,7 +308,7 @@ struct host {
|
||||
|
||||
static void
|
||||
debug_host(krb5_context context, int level, struct host *host, const char *fmt, ...)
|
||||
__attribute__((__format__(__printf__, 4, 5)));
|
||||
__attribute__ ((__format__ (__printf__, 4, 5)));
|
||||
|
||||
static void
|
||||
debug_host(krb5_context context, int level, struct host *host, const char *fmt, ...)
|
||||
|
@@ -36,7 +36,7 @@
|
||||
|
||||
static krb5_error_code _warnerr(krb5_context context, int do_errtext,
|
||||
krb5_error_code code, int level, const char *fmt, va_list ap)
|
||||
__attribute__((__format__(__printf__, 5, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 5, 0)));
|
||||
|
||||
static krb5_error_code
|
||||
_warnerr(krb5_context context, int do_errtext,
|
||||
@@ -110,7 +110,7 @@ _warnerr(krb5_context context, int do_errtext,
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_vwarn(krb5_context context, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 3, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)))
|
||||
{
|
||||
return _warnerr(context, 1, code, 1, fmt, ap);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ krb5_vwarn(krb5_context context, krb5_error_code code,
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 4)))
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)))
|
||||
{
|
||||
FUNC(1, code, 1);
|
||||
return ret;
|
||||
@@ -146,7 +146,7 @@ krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_vwarnx(krb5_context context, const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 2, 0)))
|
||||
__attribute__ ((__format__ (__printf__, 2, 0)))
|
||||
{
|
||||
return _warnerr(context, 0, 0, 1, fmt, ap);
|
||||
}
|
||||
@@ -162,7 +162,7 @@ krb5_vwarnx(krb5_context context, const char *fmt, va_list ap)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_warnx(krb5_context context, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 2, 3)))
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)))
|
||||
{
|
||||
FUNC(0, 0, 1);
|
||||
return ret;
|
||||
@@ -184,7 +184,7 @@ krb5_warnx(krb5_context context, const char *fmt, ...)
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_verr(krb5_context context, int eval, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 4, 0)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 4, 0)))
|
||||
{
|
||||
_warnerr(context, 1, code, 0, fmt, ap);
|
||||
exit(eval);
|
||||
@@ -206,7 +206,7 @@ krb5_verr(krb5_context context, int eval, krb5_error_code code,
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_err(krb5_context context, int eval, krb5_error_code code,
|
||||
const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 4, 5)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 4, 5)))
|
||||
{
|
||||
FUNC_NORET(1, code, 0);
|
||||
exit(eval);
|
||||
@@ -226,7 +226,7 @@ krb5_err(krb5_context context, int eval, krb5_error_code code,
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_verrx(krb5_context context, int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 3, 0)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 3, 0)))
|
||||
{
|
||||
_warnerr(context, 0, 0, 0, fmt, ap);
|
||||
exit(eval);
|
||||
@@ -245,7 +245,7 @@ krb5_verrx(krb5_context context, int eval, const char *fmt, va_list ap)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 3, 4)))
|
||||
{
|
||||
FUNC_NORET(0, 0, 0);
|
||||
exit(eval);
|
||||
@@ -267,7 +267,7 @@ krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_vabort(krb5_context context, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 3, 0)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 3, 0)))
|
||||
{
|
||||
_warnerr(context, 1, code, 0, fmt, ap);
|
||||
abort();
|
||||
@@ -288,7 +288,7 @@ krb5_vabort(krb5_context context, krb5_error_code code,
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 3, 4)))
|
||||
{
|
||||
FUNC_NORET(1, code, 0);
|
||||
abort();
|
||||
@@ -297,7 +297,7 @@ krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_vabortx(krb5_context context, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)))
|
||||
{
|
||||
_warnerr(context, 0, 0, 0, fmt, ap);
|
||||
abort();
|
||||
@@ -316,7 +316,7 @@ krb5_vabortx(krb5_context context, const char *fmt, va_list ap)
|
||||
|
||||
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
|
||||
krb5_abortx(krb5_context context, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)))
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)))
|
||||
{
|
||||
FUNC_NORET(0, 0, 0);
|
||||
abort();
|
||||
|
@@ -58,33 +58,33 @@
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
verr(int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)));
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
err(int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)));
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
verrx(int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)));
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
errx(int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)));
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
vwarn(const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 1, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
warn(const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 2)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
vwarnx(const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 1, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
warnx(const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
__attribute__ ((__format__ (__printf__, 1, 2)));
|
||||
|
||||
#endif /* __ERR_H__ */
|
||||
|
@@ -468,7 +468,7 @@ free_environment(char **);
|
||||
#define warnerr rk_warnerr
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
rk_warnerr(int doerrno, const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 2, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 2, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL
|
||||
rk_realloc(void *, size_t);
|
||||
@@ -480,7 +480,7 @@ rk_strpoolcollect(struct rk_strpool *);
|
||||
|
||||
ROKEN_LIB_FUNCTION struct rk_strpool * ROKEN_LIB_CALL
|
||||
rk_strpoolprintf(struct rk_strpool *, const char *, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
|
||||
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
|
||||
rk_strpoolfree(struct rk_strpool *);
|
||||
|
@@ -471,7 +471,7 @@ ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL endusershell(void);
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rk_snprintf (char *, size_t, const char *, ...)
|
||||
__attribute__ ((format (printf, 3, 4)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)));
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_VSNPRINTF) || defined(NEED_VSNPRINTF_PROTO)
|
||||
@@ -480,7 +480,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rk_vsnprintf (char *, size_t, const char *, va_list)
|
||||
__attribute__((format (printf, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_ASPRINTF) || defined(NEED_ASPRINTF_PROTO)
|
||||
@@ -489,7 +489,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rk_asprintf (char **, const char *, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_VASPRINTF) || defined(NEED_VASPRINTF_PROTO)
|
||||
@@ -498,7 +498,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rk_vasprintf (char **, const char *, va_list)
|
||||
__attribute__((format (printf, 2, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 2, 0)));
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_ASNPRINTF) || defined(NEED_ASNPRINTF_PROTO)
|
||||
@@ -507,7 +507,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rk_asnprintf (char **, size_t, const char *, ...)
|
||||
__attribute__ ((format (printf, 3, 4)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 4)));
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_VASNPRINTF) || defined(NEED_VASNPRINTF_PROTO)
|
||||
@@ -516,7 +516,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
#endif
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
vasnprintf (char **, size_t, const char *, va_list)
|
||||
__attribute__((format (printf, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRDUP
|
||||
|
@@ -72,14 +72,14 @@ rtbl_add_column_by_id (rtbl_t, unsigned int, const char*, unsigned int);
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rtbl_add_column_entryv_by_id (rtbl_t table, unsigned int id,
|
||||
const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rtbl_add_column_entry (rtbl_t, const char*, const char*);
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rtbl_add_column_entryv (rtbl_t, const char*, const char*, ...)
|
||||
__attribute__ ((format (printf, 3, 0)));
|
||||
__attribute__ ((__format__ (__printf__, 3, 0)));
|
||||
|
||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||
rtbl_add_column_entry_by_id (rtbl_t, unsigned int, const char*);
|
||||
|
Reference in New Issue
Block a user