From 6ebf3dbb33606411c17cbb75f7407e1457ca4b68 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 3 Dec 2012 07:58:01 +1100 Subject: [PATCH] workaround only needed for clang 3.1 --- lib/dns/name.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/name.c b/lib/dns/name.c index 0536950634..46547829d9 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -844,7 +844,7 @@ dns_name_matcheswildcard(const dns_name_t *name, const dns_name_t *wname) { REQUIRE(dns_name_iswildcard(wname)); #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)); #endif 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 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)); #endif 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); #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)); #endif DNS_NAME_INIT(&downname, NULL);