summaryrefslogtreecommitdiff
path: root/source/fitz/xml.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-09-13 15:47:58 +0100
committerRobin Watts <robin.watts@artifex.com>2013-09-13 16:02:32 +0100
commitaefe6a511b3cb901034e5995fd882e334e40f2bb (patch)
tree74005b19d77e704480b2c7c43c3ed51c15b17dcf /source/fitz/xml.c
parenta0a92b5cf0fa076c923e7a5aa911dfff28aea351 (diff)
downloadmupdf-aefe6a511b3cb901034e5995fd882e334e40f2bb.tar.xz
Fix various compile warnings spotted by the cluster.
Diffstat (limited to 'source/fitz/xml.c')
-rw-r--r--source/fitz/xml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/xml.c b/source/fitz/xml.c
index 8c97562c..958eb51c 100644
--- a/source/fitz/xml.c
+++ b/source/fitz/xml.c
@@ -144,7 +144,7 @@ static int xml_parse_entity(int *c, char *a)
*c = '"';
return 6;
}
- *c = *a++;
+ *c = *a;
return 1;
}
@@ -290,7 +290,7 @@ parse_comment:
if (*p == '[') goto parse_cdata;
if (*p++ != '-') return "syntax error in comment (<! not followed by --)";
if (*p++ != '-') return "syntax error in comment (<!- not followed by -)";
- mark = p;
+ /* mark = p; */
while (*p) {
if (p[0] == '-' && p[1] == '-' && p[2] == '>') {
p += 3;
@@ -304,7 +304,7 @@ parse_cdata:
if (p[1] != 'C' || p[2] != 'D' || p[3] != 'A' || p[4] != 'T' || p[5] != 'A' || p[6] != '[')
return "syntax error in CDATA section";
p += 7;
- mark = p;
+ /* mark = p; */
while (*p) {
if (p[0] == ']' && p[1] == ']' && p[2] == '>') {
p += 3;
@@ -326,7 +326,7 @@ parse_processing_instruction:
parse_closing_element:
while (iswhite(*p)) ++p;
- mark = p;
+ /* mark = p; */
while (isname(*p)) ++p;
while (iswhite(*p)) ++p;
if (*p != '>')