From 9250c55f022bc744da87b723910c78f7c899070e Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 19 Dec 2006 00:42:17 +0000 Subject: [PATCH] Use __extension__ if initializing by field name and using GCC in pre-C99 mode git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18973 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/accessor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/krb5/os/accessor.c b/src/lib/krb5/os/accessor.c index cd7d0c37f..95f0f0fdd 100644 --- a/src/lib/krb5/os/accessor.c +++ b/src/lib/krb5/os/accessor.c @@ -43,6 +43,9 @@ krb5int_accessor(krb5int_access *internals, krb5_int32 version) if (version == KRB5INT_ACCESS_VERSION) { #if DESIGNATED_INITIALIZERS #define S(FIELD, VAL) .FIELD = VAL +#if defined __GNUC__ && __STDC_VERSION__ < 199901L + __extension__ +#endif static const krb5int_access internals_temp = { #else #define S(FIELD, VAL) internals_temp.FIELD = VAL -- 2.26.2