[xslt] libxml2-2.6.17 -- gcc warnings + patch



Hi Daniel,

I have noticed that there are almost no gcc warnings left in libxm2-2.6.17
(Linux with gcc-3.4), very neat. The attached small patch should take care
of the remaining two (one incompatible pointer type, one missing prototype).

Please have a look at testdso.c. I know that's right for Unix/Linux but I'm
not sure about windows.

regards
Peter Breitenlohner <peb mppmu mpg de>
diff -ur -N libxml2-2.6.17.orig/testdso.c libxml2-2.6.17/testdso.c
--- libxml2-2.6.17.orig/testdso.c	2005-01-13 13:25:44.000000000 +0100
+++ libxml2-2.6.17/testdso.c	2005-01-17 14:36:23.000000000 +0100
@@ -3,7 +3,9 @@
 #define IN_LIBXML
 #include "libxml/xmlexports.h"
 
-XMLPUBFUN int hello_world(void)
+XMLPUBFUN int hello_world(void);
+
+int hello_world(void)
 {
   printf("Success!\n");
   return 0;
diff -ur -N libxml2-2.6.17.orig/xmlregexp.c libxml2-2.6.17/xmlregexp.c
--- libxml2-2.6.17.orig/xmlregexp.c	2005-01-12 14:15:51.000000000 +0100
+++ libxml2-2.6.17/xmlregexp.c	2005-01-17 13:57:29.000000000 +0100
@@ -3343,7 +3343,7 @@
 #ifdef DEBUG_ERR
 static void testerr(xmlRegExecCtxtPtr exec) {
     const xmlChar *string;
-    const xmlChar *values[5];
+    xmlChar *values[5];
     int nb = 5;
     int nbneg;
     int terminal;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]