For gcc 4.x, add sentinel attribute to krb5_build_principal
authorKen Raeburn <raeburn@mit.edu>
Mon, 27 Aug 2007 23:42:35 +0000 (23:42 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 27 Aug 2007 23:42:35 +0000 (23:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19888 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/krb5.hin

index c7327df8d7e016f1b3d97d814cef4092dd7f45a7..e3e2c04e1e2074a18ea49b97c8dabf0c19d3d139 100644 (file)
@@ -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);