w3c-libwww-5.4.0 -- patch to avoid some gcc warnings

Peter Breitenlohner <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>
Hi,

The attached patch avoids some (but not all) gcc warnings when compiling
w3c-libwww-5.4.0 on i686-linux-gnu.

regards
Peter Breitenlohner <[email protected]>
w3c-libwww-5.4.0-diffs (text/plain, 1.7 KB)
diff -ur w3c-libwww-5.4.0.orig/Library/Examples/rdf_parse_buffer.c w3c-libwww-5.4.0/Library/Examples/rdf_parse_buffer.c
--- w3c-libwww-5.4.0.orig/Library/Examples/rdf_parse_buffer.c	2000-08-30 14:59:16.000000000 +0200
+++ w3c-libwww-5.4.0/Library/Examples/rdf_parse_buffer.c	2002-10-28 21:35:22.000000000 +0100
@@ -101,6 +101,7 @@
 
     /* Cleanup */
     (void) fclose (fp);
+    return NULL;
 }
 
 /*
diff -ur w3c-libwww-5.4.0.orig/LineMode/src/GridText.h w3c-libwww-5.4.0/LineMode/src/GridText.h
--- w3c-libwww-5.4.0.orig/LineMode/src/GridText.h	2002-06-12 11:31:22.000000000 +0200
+++ w3c-libwww-5.4.0/LineMode/src/GridText.h	2002-10-28 21:45:05.000000000 +0100
@@ -26,6 +26,8 @@
 #include "HText.h"
 
 extern HTChildAnchor * HText_childNumber (HText * text, int n);
+extern BOOL HText_select (HText * text);
+extern BOOL HText_selectAnchor (HText * text, HTChildAnchor * anchor);
 
 /* delete a hyper doc object with interfering with any anchors */
 extern void hyperfree (HText * me);
diff -ur w3c-libwww-5.4.0.orig/modules/expat/xmlparse/xmlparse.c w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c
--- w3c-libwww-5.4.0.orig/modules/expat/xmlparse/xmlparse.c	2000-08-28 10:52:01.000000000 +0200
+++ w3c-libwww-5.4.0/modules/expat/xmlparse/xmlparse.c	2002-10-28 21:27:25.000000000 +0100
@@ -209,8 +209,10 @@
 static enum XML_Error
 doProlog(XML_Parser parser, const ENCODING *enc, const char *s,
 	 const char *end, int tok, const char *next, const char **nextPtr);
+#ifdef XML_DTD
 static enum XML_Error
 processInternalParamEntity(XML_Parser parser, ENTITY *entity);
+#endif /* XML_DTD */
 static enum XML_Error
 doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc,
 	  const char *start, const char *end, const char **endPtr);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.