]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
darwinssl: fix compiler warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 4 Aug 2017 20:47:16 +0000 (22:47 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 4 Aug 2017 22:11:01 +0000 (00:11 +0200)
clang complains:
vtls/darwinssl.c:40:8: error: extra tokens at end of #endif directive
[-Werror,-Wextra-tokens]

This breaks the darwinssl build on Travis. Fix it by making this token
a comment.

Closes https://github.com/curl/curl/pull/1734

lib/vtls/darwinssl.c

index 20089dbe007d07f2a4b45b392ec266186ced6220..6f9c6012e8fd920c3ceb473a8e6b4c7bc27297e5 100644 (file)
@@ -37,7 +37,7 @@
 #ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wtautological-pointer-compare"
-#endif __clang__
+#endif /* __clang__ */
 
 #ifdef HAVE_LIMITS_H
 #include <limits.h>