From: Ken Raeburn Date: Mon, 26 Jun 2000 20:55:49 +0000 (+0000) Subject: * com_err.h (com_err): Declare with format attribute if using gcc X-Git-Tag: krb5-1.3-alpha1~2094 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46a20bca176f804e256d8a1c5e3ca362b4c5fd0d;p=krb5.git * com_err.h (com_err): Declare with format attribute if using gcc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12432 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index e0f979369..845e82b08 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,8 @@ +2000-06-26 Ken Raeburn + + * com_err.h (com_err): Declare with format attribute if using + gcc. + 2000-05-07 Miro Jurisic * com_err.c (default_com_err_proc): use strncpy diff --git a/src/util/et/com_err.h b/src/util/et/com_err.h index 7a8858b38..7288e91ac 100644 --- a/src/util/et/com_err.h +++ b/src/util/et/com_err.h @@ -69,7 +69,11 @@ extern "C" { #endif KRB5_DLLIMP extern void KRB5_CALLCONV_C com_err - ET_STDARG_P((const char FAR *, errcode_t, const char FAR *, ...)); + ET_STDARG_P((const char FAR *, errcode_t, const char FAR *, ...)) +#if !defined (__cplusplus) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) + __attribute__ ((__format__ (__printf__, 3, 4))) +#endif + ; KRB5_DLLIMP extern void KRB5_CALLCONV com_err_va ET_P((const char FAR *whoami, errcode_t code, const char FAR *fmt, va_list ap));