Empty initializers are (sadly) not part of C.
Stop using them.
diff --git a/snmplib/system.c b/snmplib/system.c
index a82edcd..b6de145 100644
--- a/snmplib/system.c
+++ b/snmplib/system.c
@@ -598,8 +598,9 @@
static char boottime_name[] = "boottime";
#endif
static char empty_name[] = "";
- struct nlist nl[2] = { };
+ struct nlist nl[2];
+ memset(nl, 0, sizeof(nl));
nl[0].n_name = boottime_name;
nl[1].n_name = empty_name;
#endif /* NETSNMP_CAN_USE_SYSCTL */
diff --git a/testing/fulltests/unit-tests/T008asn1_clib.c b/testing/fulltests/unit-tests/T008asn1_clib.c
index 73bb511..b94714a 100644
--- a/testing/fulltests/unit-tests/T008asn1_clib.c
+++ b/testing/fulltests/unit-tests/T008asn1_clib.c
@@ -135,7 +135,7 @@
u_char *build_result;
size_t decoded_length;
u_char decoded_type;
- struct counter64 decoded_value = { };
+ struct counter64 decoded_value = { 0 };
u_char *parse_result;
u_char *rbuild_result = NULL;
size_t rbuild_len = 0;
@@ -201,7 +201,7 @@
u_char *build_result;
size_t decoded_length;
u_char decoded_type;
- struct counter64 decoded_value = { };
+ struct counter64 decoded_value = { 0 };
u_char *parse_result;
u_char *rbuild_result = NULL;
size_t rbuild_len = 0;
@@ -246,7 +246,7 @@
u_char *build_result;
size_t decoded_length;
u_char decoded_type;
- struct counter64 decoded_value = { };
+ struct counter64 decoded_value = { 0 };
u_char *parse_result;
u_char *rbuild_result = NULL;
size_t rbuild_len = 0;
@@ -289,7 +289,7 @@
u_char *build_result;
size_t decoded_length;
u_char decoded_type;
- struct counter64 decoded_value = { };
+ struct counter64 decoded_value = { 0 };
u_char *parse_result;
u_char *rbuild_result = NULL;
size_t rbuild_len = 0;