libcli/ldap/tests/ldap_message_test.c defines a zero length array
(uint8_t buf[0]), which is a GCC extension and breaks the build with
some strict compilers like xlc.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14387
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Jun 23 02:15:35 UTC 2020 on sn-devel-184
struct asn1_data *asn1;
struct ldap_message *ldap_msg;
NTSTATUS status;
- uint8_t buf[0];
+ uint8_t *buf = NULL;
size_t len = 0;
struct ldap_request_limits limits = {
.max_search_size = 256000,