summaryrefslogtreecommitdiff
path: root/source/html/html-layout.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-10-04 14:53:38 +0100
committerRobin Watts <robin.watts@artifex.com>2016-10-06 11:49:44 +0100
commitb22c54d48e1806ae2b88ec2bae518beb0372f0de (patch)
tree43d1b444f6e5b12129d22c038c683308fe68ec28 /source/html/html-layout.c
parentbcd4c4b4b8379df2997f32776cd34b8ad0ff2da1 (diff)
downloadmupdf-b22c54d48e1806ae2b88ec2bae518beb0372f0de.tar.xz
Squash warnings in cluster builds.
Diffstat (limited to 'source/html/html-layout.c')
-rw-r--r--source/html/html-layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 19e58061..0d0e5aed 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -2186,7 +2186,6 @@ static void
detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_bidi_direction *bidi_dir, fz_html_flow *flow)
{
fz_html_flow *end = flow;
- const char *text;
bidi_data data;
while (end)
@@ -2198,7 +2197,8 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b
buffer->len = 0;
while (end && (level & 1) == (end->bidi_level & 1))
{
- size_t len;
+ size_t len = 0;
+ const char *text = "";
int broken = 0;
switch (end->type)
@@ -2213,8 +2213,6 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b
break;
case FLOW_SHYPHEN:
case FLOW_SBREAK:
- len = 0;
- text = "";
break;
case FLOW_BREAK:
case FLOW_IMAGE: