2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

workaround only needed for clang 3.1

This commit is contained in:
Mark Andrews
2012-12-03 07:58:01 +11:00
parent c6af776a7e
commit 6ebf3dbb33

View File

@@ -844,7 +844,7 @@ dns_name_matcheswildcard(const dns_name_t *name, const dns_name_t *wname) {
REQUIRE(dns_name_iswildcard(wname)); REQUIRE(dns_name_iswildcard(wname));
#if defined(__clang__) && \ #if defined(__clang__) && \
( __clang_major__ < 4 || (__clang_major__ == 4 && __clang_minor__ < 2)) ( __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 2))
memset(&tname, 0, sizeof(tname)); memset(&tname, 0, sizeof(tname));
#endif #endif
DNS_NAME_INIT(&tname, NULL); DNS_NAME_INIT(&tname, NULL);
@@ -1942,7 +1942,7 @@ dns_name_towire(const dns_name_t *name, dns_compress_t *cctx,
*/ */
if (name->offsets == NULL) { if (name->offsets == NULL) {
#if defined(__clang__) && \ #if defined(__clang__) && \
( __clang_major__ < 4 || (__clang_major__ == 4 && __clang_minor__ < 2)) ( __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 2))
memset(&clname, 0, sizeof(clname)); memset(&clname, 0, sizeof(clname));
#endif #endif
DNS_NAME_INIT(&clname, clo); DNS_NAME_INIT(&clname, clo);
@@ -2251,7 +2251,7 @@ dns_name_digest(dns_name_t *name, dns_digestfunc_t digest, void *arg) {
REQUIRE(digest != NULL); REQUIRE(digest != NULL);
#if defined(__clang__) && \ #if defined(__clang__) && \
( __clang_major__ < 4 || (__clang_major__ == 4 && __clang_minor__ < 2)) ( __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 2))
memset(&downname, 0, sizeof(downname)); memset(&downname, 0, sizeof(downname));
#endif #endif
DNS_NAME_INIT(&downname, NULL); DNS_NAME_INIT(&downname, NULL);