Use __extension__ if initializing by field name and using GCC in pre-C99 mode
authorKen Raeburn <raeburn@mit.edu>
Tue, 19 Dec 2006 00:42:17 +0000 (00:42 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 19 Dec 2006 00:42:17 +0000 (00:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18973 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/accessor.c

index cd7d0c37f52c00b79df5b6318b6ca63e48cec4fe..95f0f0fdd3c08e3f40e0e59d56fd09a7f3431f0a 100644 (file)
@@ -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