+2000-06-26 Ken Raeburn <raeburn@mit.edu>
+
+ * com_err.h (com_err): Declare with format attribute if using
+ gcc.
+
2000-05-07 Miro Jurisic <meeroh@mit.edu>
* com_err.c (default_com_err_proc): use strncpy
#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));