Build fixes: -Wno-sign-compare, disable lzma
Change-Id: I662ee5c1e6e6e0270e93d93f8df73877d63d3beb
diff --git a/BUILD.gn b/BUILD.gn
index 3a8af61..bad66ee 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -39,10 +39,11 @@
config("libxml2_private_config") {
visibility = [ ":*" ]
cflags = [
- "-Wno-incompatible-pointer-types",
"-Wno-empty-body",
+ "-Wno-incompatible-pointer-types",
"-Wno-missing-field-initializers",
"-Wno-self-assign",
+ "-Wno-sign-compare",
"-Wno-tautological-pointer-compare",
"-Wno-unused-function",
]
diff --git a/config.h b/config.h
index 1c32643..b22e896 100644
--- a/config.h
+++ b/config.h
@@ -89,7 +89,7 @@
/* #undef HAVE_LIBHISTORY */
/* Have compression library */
-#define HAVE_LIBLZMA 1
+/* #undef HAVE_LIBLZMA */
/* Define if pthread library is there (-lpthread) */
#define HAVE_LIBPTHREAD /**/
diff --git a/include/libxml/xmlversion.h b/include/libxml/xmlversion.h
index fd75de2..a04f424 100644
--- a/include/libxml/xmlversion.h
+++ b/include/libxml/xmlversion.h
@@ -405,7 +405,7 @@
*
* Whether the Lzma support is compiled in
*/
-#if 1
+#if 0
#define LIBXML_LZMA_ENABLED
#endif