https://bugs.openldap.org/show_bug.cgi?id=9332
--- Comment #1 from Howard Chu <hyc(a)openldap.org> ---
(In reply to stacey.marshall from comment #0)
The addition of integer ldo_tls_require_san to structure requires an
additional initialization digit to macro LDAP_LDO_TLS_NULLARG.
Sounds like a broken compiler, especially if it's spitting out the
error message stated in this ticket title. (I.e., if it was correct
it should be complaining about too few initializers.) But even so,
the C standard already says that any unspecified initializaers default
to zero, so it's not even necessary to provide these.
What compiler/version did you use?
--- openldap-2.4.52/libraries/libldap/ldap-int.h 2020-08-28
09:10:00.000000000 -0700
+++ openldap-2.4.52.x/libraries/libldap/ldap-int.h 2020-09-01
10:08:44.661226154 -0700
@@ -263,7 +263,7 @@
int ldo_tls_impl;
int ldo_tls_crlcheck;
int ldo_tls_require_san;
-#define LDAP_LDO_TLS_NULLARG ,0,0,0,{0,0,0,0,0,0,0,0,0},0,0,0,0
+#define LDAP_LDO_TLS_NULLARG ,0,0,0,{0,0,0,0,0,0,0,0,0},0,0,0,0,0
#else
#define LDAP_LDO_TLS_NULLARG
#endif
--
You are receiving this mail because:
You are on the CC list for the issue.