]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Work around clang complaining of unknown attributes in libxml2
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 20 Aug 2015 02:44:31 +0000 (04:44 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 20 Aug 2015 02:44:31 +0000 (04:44 +0200)
src/esi/Libxml2Parser.h

index 87db3349a9a8b0251621183c6edf32453cc58df7..423aba1eef7f88f66572205f8c8735ea0c0154e1 100644 (file)
 #define OLD_FREE free
 #undef free
 #endif
+
+#ifdef __clang__
+// workaround for clang complaining of unknown attributes in libxml2
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunknown-attributes"
+#endif /* __clang__ */
+
 #if HAVE_LIBXML_PARSER_H
 #include <libxml/parser.h>
 #endif
 #include <libxml/HTMLtree.h>
 #endif
 
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
 #ifdef OLD_FREE
 #define free OLD_FREE
 #endif