From 216cd65fe83dd6a9460aefb9156e98eecbe665fb Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 27 Aug 2007 23:42:35 +0000 Subject: [PATCH] For gcc 4.x, add sentinel attribute to krb5_build_principal git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19888 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/krb5.hin | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index c7327df8d..e3e2c04e1 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -1558,7 +1558,11 @@ krb5_error_code KRB5_CALLCONV krb5_get_server_rcache krb5_error_code KRB5_CALLCONV_C krb5_build_principal_ext (krb5_context, krb5_principal *, unsigned int, const char *, ...); krb5_error_code KRB5_CALLCONV_C krb5_build_principal - (krb5_context, krb5_principal *, unsigned int, const char *, ...); + (krb5_context, krb5_principal *, unsigned int, const char *, ...) +#if __GNUC__ >= 4 + __attribute__ ((sentinel)) +#endif + ; krb5_error_code KRB5_CALLCONV krb5_build_principal_va (krb5_context, krb5_principal, unsigned int, const char *, va_list); -- 2.26.2