summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/vtls/darwinssl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c
index c2200994f..3c1e7f8f4 100644
--- a/lib/vtls/darwinssl.c
+++ b/lib/vtls/darwinssl.c
@@ -32,10 +32,12 @@
#include "curl_base64.h"
#include "strtok.h"
+#ifdef USE_DARWINSSL
+
+#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-pointer-compare"
-
-#ifdef USE_DARWINSSL
+#endif __clang__
#ifdef HAVE_LIMITS_H
#include <limits.h>
@@ -2849,6 +2851,8 @@ static ssize_t darwinssl_recv(struct connectdata *conn,
return (ssize_t)processed;
}
-#endif /* USE_DARWINSSL */
-
+#ifdef __clang__
#pragma clang diagnostic pop
+#endif
+
+#endif /* USE_DARWINSSL */