From: Ken Raeburn Date: Tue, 19 Dec 2006 00:42:17 +0000 (+0000) Subject: Use __extension__ if initializing by field name and using GCC in pre-C99 mode X-Git-Tag: krb5-1.7-alpha1~1394 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9250c55f022bc744da87b723910c78f7c899070e;p=krb5.git 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 --- 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